From 71a1f20b022424e423655426c37f224bd2455c48 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 3 Feb 2024 23:55:23 -0700 Subject: [PATCH] s --- gentoo-gnome.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gentoo-gnome.sh b/gentoo-gnome.sh index 6cf8074..ea6dd0d 100644 --- a/gentoo-gnome.sh +++ b/gentoo-gnome.sh @@ -39,7 +39,7 @@ WIRELESS_INTERFACE='wlan0' COMPRESSION='compress=zstd:10' SERVICES+=(gdm cronie libvirt smartd cronie cups NetworkManager dev-zram0.swap) MAKEOPTS="-j$(cat /proc/cpuinfo | grep -i processor | grep -vi 'model' | wc -l)" -ROOT_PARTITION_SIZE="30GB" +ROOT_PARTITION_SIZE=30 FEATURES="distcc getbinpkg -binpkg-request-signature" EMERGE_DEFAULT_OPTS="--getbinpkg --jobs 10" #USEFLAG CONFIGURATION @@ -463,8 +463,9 @@ btrfs-tweaks() { } initialize-disk() { + ROOT_PARTITION_SIZE="$ROOT_PARTITION_SIZE GB" 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) + SWAP_SIZE_END="$(expr $SWAP_SIZE + $ROOT_PARTITION_SIZE) GB" echo "Start: $SWAP_SIZE END: $SWAP_SIZE_END" parted /dev/$HARD_DISK mklabel gpt parted -a optimal /dev/$HARD_DISK mkpart primary fat32 1MiB 200MiB