small fix
This commit is contained in:
parent
ef258e3dc7
commit
513be653a8
|
@ -17,7 +17,7 @@ if [[ -n "${cfg[wipe]}" ]]; then
|
|||
echo "Formatting disk"
|
||||
echo "o
|
||||
w
|
||||
q" | fdisk "${cfg[diskname]}" 2>1 > /dev/null
|
||||
q" | fdisk "${cfg[diskname]}" > /dev/null
|
||||
fi
|
||||
|
||||
if [[ "${cfg[fde_key_store]}" == "once" ]]; then
|
||||
|
@ -30,7 +30,7 @@ if [[ "${cfg[fde_key_store]}" == "once" ]]; then
|
|||
+${cfg[bootsize]}G
|
||||
a
|
||||
w
|
||||
q" | fdisk "${cfg[diskname]}" 2>1 > /dev/null
|
||||
q" | fdisk "${cfg[diskname]}" > /dev/null
|
||||
if [[ "${cfg[rootfssize]}" == "rest" ]]; then
|
||||
target_partition_tmp="${cfg[diskname]}2"
|
||||
echo "create rootfs"
|
||||
|
@ -40,7 +40,7 @@ if [[ "${cfg[fde_key_store]}" == "once" ]]; then
|
|||
|
||||
|
||||
w
|
||||
q" | fdisk "${cfg[diskname]}" 2>1 > /dev/null
|
||||
q" | fdisk "${cfg[diskname]}" > /dev/null
|
||||
elif [[ ! "${cfg[rootfssize]}" == "rest" ]]; then
|
||||
target_partition_tmp="${cfg[diskname]}2"
|
||||
echo "create rootfs with a specific size"
|
||||
|
@ -50,7 +50,7 @@ if [[ "${cfg[fde_key_store]}" == "once" ]]; then
|
|||
|
||||
+${rootfssize}G
|
||||
w
|
||||
q" | fdisk "${cfg[diskname]}" 2>1 > /dev/null
|
||||
q" | fdisk "${cfg[diskname]}" > /dev/null
|
||||
fi
|
||||
else
|
||||
if [[ "${cfg[rootfssize]}" == "rest" ]]; then
|
||||
|
@ -63,7 +63,7 @@ else
|
|||
|
||||
a
|
||||
w
|
||||
q" | fdisk "${cfg[diskname]}" 2>1 > /dev/null
|
||||
q" | fdisk "${cfg[diskname]}" > /dev/null
|
||||
elif [[ ! "${cfg[rootfssize]}" == "rest" ]]; then
|
||||
target_partition_tmp="${cfg[diskname]}1"
|
||||
echo "create rootfs with a specific size without boot"
|
||||
|
@ -74,7 +74,7 @@ else
|
|||
+${rootfssize}G
|
||||
a
|
||||
w
|
||||
q" | fdisk "${cfg[diskname]}" 2>1 > /dev/null
|
||||
q" | fdisk "${cfg[diskname]}" > /dev/null
|
||||
fi
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user