|
|
@ -21,16 +21,18 @@ |
|
|
|
device="(cat "$__object/parameter/device")" |
|
|
|
device="(cat "$__object/parameter/device")" |
|
|
|
type="(cat "$__object/parameter/type")" |
|
|
|
type="(cat "$__object/parameter/type")" |
|
|
|
|
|
|
|
|
|
|
|
command="mkfs -t $type" |
|
|
|
if [ "$type" = "swap" ]; then |
|
|
|
|
|
|
|
echo "mkswap $device" |
|
|
|
if [ -f "$__object/parameter/options" ]; then |
|
|
|
else |
|
|
|
options="(cat "$__object/parameter/options")" |
|
|
|
command="mkfs -t $type" |
|
|
|
command="$command -o '$options'" |
|
|
|
if [ -f "$__object/parameter/options" ]; then |
|
|
|
fi |
|
|
|
options="(cat "$__object/parameter/options")" |
|
|
|
command="$command $device" |
|
|
|
command="$command -o '$options'" |
|
|
|
if [ -f "$__object/parameter/blocks" ]; then |
|
|
|
fi |
|
|
|
blocks="(cat "$__object/parameter/blocks")" |
|
|
|
command="$command $device" |
|
|
|
command="$command $blocks" |
|
|
|
if [ -f "$__object/parameter/blocks" ]; then |
|
|
|
|
|
|
|
blocks="(cat "$__object/parameter/blocks")" |
|
|
|
|
|
|
|
command="$command $blocks" |
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
echo "$command" |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
echo "$command" |
|
|
|
|
|
|
|