From f66338305d2c9e9d552011adf7776e7f266e2447 Mon Sep 17 00:00:00 2001 From: Eric Renfro Date: Thu, 1 Aug 2024 16:05:28 -0400 Subject: [PATCH] Fix debug mode for partitioning --- gentoo-install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gentoo-install.sh b/gentoo-install.sh index 167d69d..64df967 100755 --- a/gentoo-install.sh +++ b/gentoo-install.sh @@ -55,7 +55,7 @@ function prepare_disk() { fi if [[ "$ENCRYPTION" ]]; then - parted "$RootDisk" --script --align=optimal -- "$RootDisk" \ + ${cmd} parted "$RootDisk" --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 - parted "$RootDisk" --script --align=optimal -- "$RootDisk" \ + ${cmd} parted "$RootDisk" --script --align=optimal -- "$RootDisk" \ mklabel gpt \ mkpart primary 1MiB 100MiB \ mkpart primary 100MiB -2048s \