From fb611b09eccd5981eb727d3d23768e53a7c1ae9e Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 3 Feb 2024 23:52:37 -0700 Subject: [PATCH] d --- gentoo-gnome.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gentoo-gnome.sh b/gentoo-gnome.sh index 123bf09..9ea6373 100644 --- a/gentoo-gnome.sh +++ b/gentoo-gnome.sh @@ -464,14 +464,13 @@ btrfs-tweaks() { initialize-disk() { SWAP_SIZE=$(expr $(cat /proc/meminfo | head -1 | cut -d ':' -f2 | sed 's/ //g' | sed 's/kB//') / 1024) + SWAP_SIZE_END=$(expr $SWAP_SIZE + $ROOT_PARTITION_SIZE) echo "Test: $SWAP_SIZE" parted /dev/$HARD_DISK mklabel gpt parted -a optimal /dev/$HARD_DISK mkpart primary fat32 1MiB 200MiB parted -a optimal /dev/$HARD_DISK mkpart root ext3 200MiB $ROOT_PARTITION_SIZE parted -a optimal /dev/$HARD_DISK set 1 esp on - echo $(cat /proc/meminfo | head -1 | cut -d ':' -f2 | sed 's/ //g') - sleep 5 - parted -a optimal /dev/$HARD_DISK mkpart swap ext3 $ROOT_PARTITION_SIZE $SWAP_SIZE + parted -a optimal /dev/$HARD_DISK mkpart swap ext3 $ROOT_PARTITION_SIZE $SWAP_SIZE_END parted -a optimal /dev/$HARD_DISK mkpart home ext3 $SWAP_SIZE 100% partitionDetection echo