From 62b25d8c771385134d68a0883fe7d789eaad3d99 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 3 Feb 2024 23:24:24 -0700 Subject: [PATCH] d --- gentoo-gnome.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gentoo-gnome.sh b/gentoo-gnome.sh index c604ece..3f2b778 100644 --- a/gentoo-gnome.sh +++ b/gentoo-gnome.sh @@ -463,13 +463,14 @@ btrfs-tweaks() { } initialize-disk() { - export SWAP_SIZE="$(expr $ROOT_PARTITION_SIZE + 16)GiB" + SWAP_SIZE=$(expr $ROOT_PARTITION_SIZE + 16) + SWAP_VAL="$SWAP_SIZE GiB" parted /dev/$HARD_DISK mklabel gpt parted -a optimal /dev/$HARD_DISK mkpart primary fat32 1MiB 200MiB parted -a optimal /dev/$HARD_DISK mkpart primary ext3 200MiB $ROOT_PARTITION_SIZE parted -a optimal /dev/$HARD_DISK set 1 esp on - echo parted -a optimal /dev/$HARD_DISK mkpart P2 ext3 $ROOT_PARTITION_SIZE ${SWAP_SIZE} - echo parted -a optimal /dev/$HARD_DISK mkpart P2 ext3 ${SWAP_SIZE} 100% + echo parted -a optimal /dev/$HARD_DISK mkpart P2 ext3 $ROOT_PARTITION_SIZE ${SWAP_VAL} + echo parted -a optimal /dev/$HARD_DISK mkpart P2 ext3 ${SWAP_VAL} 100% echo $SWAP_SIZE $ROOT_PARTITION_SIZE sleep 5 partitionDetection