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