increase boot partition to 2gb

This commit is contained in:
Penelope Gwen 2025-01-23 11:50:32 -08:00
parent edecd3be59
commit cf05ece982

View file

@ -13,7 +13,7 @@ automatic_partitioner(){
3>&1 2>&3 3>&-)
mem_mb=`grep MemTotal /proc/meminfo | awk '{print $2 "/1024"}' | bc`
swap_end=`printf "768+%s\n" "${mem_mb}" | bc`
swap_end=`printf "2304+%s\n" "${mem_mb}" | bc`
root_gb_free=`printf "( ( %s / 1048576 ) - %s ) / 1024\n" "$( lsblk -bno SIZE -d ${dest_dev} )" "${swap_end}" | bc`
validate_disk_size || return 1
@ -45,12 +45,12 @@ automatic_partitioner(){
#new gpt label
parted "${dest_dev}" mklabel gpt --script --fix
#efi
#efi - 256mb
parted "${dest_dev}" mkpart efi fat32 0MB 256MB --script --fix --align optimal
#boot
parted "${dest_dev}" mkpart boot btrfs 256MB 768MB --script --fix --align optimal
#swap
parted "${dest_dev}" mkpart swap linux-swap 768MB "${swap_end}MB" --script --fix --align optimal
#boot - 2gb
parted "${dest_dev}" mkpart boot btrfs 256MB 2304MB --script --fix --align optimal
#swap - equal to ram size
parted "${dest_dev}" mkpart swap linux-swap 2304MB "${swap_end}MB" --script --fix --align optimal
#root
parted "${dest_dev}" mkpart root btrfs "${swap_end}MB" "${root_end}MB" --script --fix --align optimal
#home