This commit is contained in:
Your Name 2024-02-03 23:55:23 -07:00
parent 6687172477
commit 71a1f20b02

View File

@ -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