This commit is contained in:
Your Name 2024-02-04 00:26:08 -07:00
parent 4169b18050
commit 1ffce6abe3

View File

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