This commit is contained in:
Your Name 2024-02-04 00:14:44 -07:00
parent fb0903c0b1
commit 255b048a18

View File

@ -464,7 +464,7 @@ btrfs-tweaks() {
initialize-disk() { initialize-disk() {
SWAP_SIZE=$(expr $(cat /proc/meminfo | head -1 | cut -d ':' -f2 | sed 's/ //g' | sed 's/kB//') / 1024) 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 / 1000 / 1000 / 1000)" SWAP_SIZE_END="$(expr $(expr $SWAP_SIZE + $ROOT_PARTITION_SIZE) / 1000)"
echo "Start: $SWAP_SIZE END: $SWAP_SIZE_END" echo "Start: $SWAP_SIZE END: $SWAP_SIZE_END"
parted /dev/$HARD_DISK mklabel gpt 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 fat32 1MiB 200MiB