Fix issues with parted

This commit is contained in:
Eric Renfro 2024-08-01 16:11:51 -04:00
parent f66338305d
commit 0ceebb97d9
Signed by: psi-jack
SSH key fingerprint: SHA256:1TKB8Z257L8EHK8GWNxKgMhD8a+FAR+f+j3nnlcuNVM

View file

@ -55,7 +55,7 @@ function prepare_disk() {
fi
if [[ "$ENCRYPTION" ]]; then
${cmd} parted "$RootDisk" --script --align=optimal -- "$RootDisk" \
${cmd} parted --script --align=optimal -- "$RootDisk" \
mklabel gpt \
mkpart primary 1MiB 100MiB \
mkpart primary 100MiB 2048MiB \
@ -65,7 +65,7 @@ function prepare_disk() {
#mkfs.ext4 -L "Boot" -m 0 "$EFIPart"
#mkfs.btrfs -L "System" "$RootPart"
else
${cmd} parted "$RootDisk" --script --align=optimal -- "$RootDisk" \
${cmd} parted --script --align=optimal -- "$RootDisk" \
mklabel gpt \
mkpart primary 1MiB 100MiB \
mkpart primary 100MiB -2048s \