This commit is contained in:
teldra 2022-02-07 15:27:47 +01:00
parent 3ae3326fb8
commit ca45f8d170

View File

@ -89,15 +89,18 @@ do_partition() {
start=1
if [ "$EFI" == "1" ]; then
parted -a optimal $TARGET_PHY_ID -s -- mklabel gpt
sleep 2
size=512
parted -a optimal $TARGET_PHY_ID unit mib -s -- mkpart EFI fat32 $start $(( start + size ))
sleep 2
start=$(( start + size + 1 ))
parted -a optimal $TARGET_PHY_ID unit mib -s -- mkpart root $start -1s
sleep 2
mkfs.vfat -F32 ${TARGET_PHY_ID}-part1
TARGET_PART="2"
else
parted -a optimal $TARGET_PHY_ID -s -- mklabel msdos
sleep 2
TARGET_PART="1"
if [ "$ENCRYPTION_STYLE" == "b" ] || [ "$ENCRYPTION_STYLE" == "e" ]; then
size=2048