From 0ceebb97d98eae08a4ab2b985bfe2ff2fe832456 Mon Sep 17 00:00:00 2001 From: Eric Renfro Date: Thu, 1 Aug 2024 16:11:51 -0400 Subject: [PATCH] Fix issues with parted --- gentoo-install.sh | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/gentoo-install.sh b/gentoo-install.sh index 64df967..ffca6e4 100755 --- a/gentoo-install.sh +++ b/gentoo-install.sh @@ -55,21 +55,21 @@ function prepare_disk() { fi if [[ "$ENCRYPTION" ]]; then - ${cmd} parted "$RootDisk" --script --align=optimal -- "$RootDisk" \ - mklabel gpt \ - mkpart primary 1MiB 100MiB \ - mkpart primary 100MiB 2048MiB \ - mkpart primary 2148MiB -2048s \ - set 1 esp + ${cmd} parted --script --align=optimal -- "$RootDisk" \ + mklabel gpt \ + mkpart primary 1MiB 100MiB \ + mkpart primary 100MiB 2048MiB \ + mkpart primary 2148MiB -2048s \ + set 1 esp #mkfs.vfat -F 32 -n "EFI" "$RootPart" #mkfs.ext4 -L "Boot" -m 0 "$EFIPart" #mkfs.btrfs -L "System" "$RootPart" else - ${cmd} parted "$RootDisk" --script --align=optimal -- "$RootDisk" \ - mklabel gpt \ - mkpart primary 1MiB 100MiB \ - mkpart primary 100MiB -2048s \ - set 1 esp + ${cmd} parted --script --align=optimal -- "$RootDisk" \ + mklabel gpt \ + mkpart primary 1MiB 100MiB \ + mkpart primary 100MiB -2048s \ + set 1 esp #mkfs.vfat -F 32 -n "EFI" "$RootPart" #mkfs.btrfs -L "System" "$RootPart" fi