From 243b4525508956e62c93e47fca72b295fc6d734b Mon Sep 17 00:00:00 2001 From: beech Date: Fri, 13 Sep 2024 20:10:56 -0500 Subject: [PATCH] Fix variable --- install1-ex.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/install1-ex.sh b/install1-ex.sh index c0ad0b5..31c195c 100644 --- a/install1-ex.sh +++ b/install1-ex.sh @@ -19,7 +19,7 @@ echo "-------------------------------------------------" echo "Specify drive name for install(ex. /dev/sda, /dev/nvme0n1). THIS WILL FORMAT & PARTITION THE SPECIFIED DRIVE!" -read -r DISK +read -r -p "Enter the disk: " DISK echo -e "\nFormatting disk...\n$HR" @@ -48,6 +48,8 @@ sgdisk -c 4:"home" $DISK # make filesystems echo -e "\nCreating Filesystems...\n$HR" +parted $DISK mklabel gpt + mkfs.fat -F32 "$(DISK)1" # FAT32 boot partition mkswap "$(DISK)2" # create SWAP swapon "$(DISK)2" # enable SWAP