This commit is contained in:
Your Name 2024-02-03 23:01:57 -07:00
parent 7de9b41292
commit 9a848c3094

View File

@ -463,12 +463,13 @@ btrfs-tweaks() {
}
initialize-disk() {
SWAP_SIZE=(($ROOT_PARTITION_SIZE+=16))
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 ext3 200MiB $ROOT_PARTITION_SIZE
parted -a optimal /dev/$HARD_DISK set 1 esp on
parted -a optimal /dev/$HARD_DISK mkpart P2 ext3 $ROOT_PARTITION_SIZE 16GiB
parted -a optimal /dev/$HARD_DISK mkpart P2 ext3 16GiB 100%
parted -a optimal /dev/$HARD_DISK mkpart P2 ext3 $ROOT_PARTITION_SIZE "$SWAP_SIZEGiB"
parted -a optimal /dev/$HARD_DISK mkpart P2 ext3 "$SWAP_SIZEGiB" 100%
partitionDetection
echo
echo "Formatting....."