From 92efd9a2a8c3c0c65b3bc99097f570e26239c74b Mon Sep 17 00:00:00 2001 From: Santiago Lo Coco Date: Thu, 23 Dec 2021 16:39:27 -0300 Subject: [PATCH] Replace yes with parted option --- install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index bf2dbbf..541df55 100755 --- a/install.sh +++ b/install.sh @@ -3,7 +3,7 @@ checkUefi() { ls /sys/firmware/efi/efivars > /dev/null 2>&1 if [ $? -ge 1 ]; then - echo "This scripts supports only UEFI boot mode." + whiptail --msgbox "This scripts supports only UEFI boot mode." 0 0 exit 1 fi } @@ -47,7 +47,7 @@ partDisks() { } autoPart() { - yes | parted $disk mklabel gpt 2> /dev/null + parted -s $disk mklabel gpt 2> /dev/null sgdisk $disk -n=1:0:+300M -t=1:ef00 > /dev/null sgdisk $disk -n=2:0:+1024M -t=2:8200 > /dev/null