test
This commit is contained in:
parent
b7c686fc6f
commit
20a0a9e74e
|
@ -24,6 +24,7 @@ if test -d /sys/firmware/efi; then
|
||||||
q" | fdisk "${dodiskid}" > /dev/null
|
q" | fdisk "${dodiskid}" > /dev/null
|
||||||
efipart="/dev/disk/by-id/${diskid}-part${index}"
|
efipart="/dev/disk/by-id/${diskid}-part${index}"
|
||||||
index=$(( index + 1 ))
|
index=$(( index + 1 ))
|
||||||
|
mkfs.vfat "${efipart}"
|
||||||
else
|
else
|
||||||
echo "BIOS Partition"
|
echo "BIOS Partition"
|
||||||
echo "o
|
echo "o
|
||||||
|
@ -32,7 +33,6 @@ else
|
||||||
fi
|
fi
|
||||||
sleep $sleep
|
sleep $sleep
|
||||||
|
|
||||||
set -x
|
|
||||||
|
|
||||||
if [[ "${cfg[fde_key_store]}" == "once" ]]; then
|
if [[ "${cfg[fde_key_store]}" == "once" ]]; then
|
||||||
echo "create bootpartition"
|
echo "create bootpartition"
|
||||||
|
@ -49,6 +49,8 @@ q" | fdisk "${dodiskid}" > /dev/null
|
||||||
sleep $sleep
|
sleep $sleep
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
set -x
|
||||||
|
|
||||||
if [[ "${cfg[rootfssize]}" == "rest" ]]; then
|
if [[ "${cfg[rootfssize]}" == "rest" ]]; then
|
||||||
target_partition_tmp="${dodiskid}-part${index}"
|
target_partition_tmp="${dodiskid}-part${index}"
|
||||||
echo "create rootfs"
|
echo "create rootfs"
|
||||||
|
@ -56,6 +58,7 @@ if [[ "${cfg[rootfssize]}" == "rest" ]]; then
|
||||||
echo "n
|
echo "n
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
w
|
w
|
||||||
q" | fdisk "${dodiskid}" > /dev/null
|
q" | fdisk "${dodiskid}" > /dev/null
|
||||||
else
|
else
|
||||||
|
@ -65,7 +68,7 @@ if [[ "${cfg[rootfssize]}" == "rest" ]]; then
|
||||||
|
|
||||||
|
|
||||||
w
|
w
|
||||||
q" | fdisk "${dodiskid}"
|
q" | fdisk "${dodiskid}" > /dev/null
|
||||||
fi
|
fi
|
||||||
elif [[ ! "${cfg[rootfssize]}" == "rest" ]]; then
|
elif [[ ! "${cfg[rootfssize]}" == "rest" ]]; then
|
||||||
target_partition_tmp="${dodiskid}-part${index}"
|
target_partition_tmp="${dodiskid}-part${index}"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user