From 698a85aa383aa9971892e5758b363b7fa1a2025b Mon Sep 17 00:00:00 2001 From: Saverio Miroddi Date: Tue, 10 Nov 2020 18:01:07 +0100 Subject: [PATCH 1/2] Separate EFI system and boot pool partitions size It was a bug to share the same value. The new ESP size has been set to 512M, which is more than enough. --- install-zfs.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install-zfs.sh b/install-zfs.sh index 8d9689b..2817a18 100755 --- a/install-zfs.sh +++ b/install-zfs.sh @@ -46,6 +46,7 @@ v_suitable_disks=() # (/dev/by-id/disk_id, ...); scope: find_suitable_d # Note that Linux Mint is "Linuxmint" from v20 onwards. This actually helps, since some operations are # specific to it. +c_efi_system_partition_size=512M c_default_boot_partition_size=768M # while 512M are enough for a few kernels, the Ubuntu updater complains after a couple c_default_bpool_tweaks="-o ashift=12" c_default_rpool_tweaks="-o ashift=12 -O acltype=posixacl -O compression=lz4 -O dnodesize=auto -O relatime=on -O xattr=sa -O normalization=formD" @@ -772,7 +773,7 @@ function setup_partitions { # wipefs --all "$selected_disk" - sgdisk -n1:1M:+"$v_boot_partition_size" -t1:EF00 "$selected_disk" # EFI boot + sgdisk -n1:1M:+"$c_efi_system_partition_size" -t1:EF00 "$selected_disk" # EFI boot sgdisk -n2:0:+"$v_boot_partition_size" -t2:BF01 "$selected_disk" # Boot pool sgdisk -n3:0:"$temporary_partition_start" -t3:BF01 "$selected_disk" # Root pool sgdisk -n4:0:"$tail_space_start" -t4:8300 "$selected_disk" # Temporary partition From 3afd8b3ed21a8597569a86e0023f87989fec1d5f Mon Sep 17 00:00:00 2001 From: Saverio Miroddi Date: Tue, 10 Nov 2020 18:03:03 +0100 Subject: [PATCH 2/2] Cosmetic realignment --- install-zfs.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install-zfs.sh b/install-zfs.sh index 2817a18..06f4d82 100755 --- a/install-zfs.sh +++ b/install-zfs.sh @@ -774,9 +774,9 @@ function setup_partitions { wipefs --all "$selected_disk" sgdisk -n1:1M:+"$c_efi_system_partition_size" -t1:EF00 "$selected_disk" # EFI boot - sgdisk -n2:0:+"$v_boot_partition_size" -t2:BF01 "$selected_disk" # Boot pool - sgdisk -n3:0:"$temporary_partition_start" -t3:BF01 "$selected_disk" # Root pool - sgdisk -n4:0:"$tail_space_start" -t4:8300 "$selected_disk" # Temporary partition + sgdisk -n2:0:+"$v_boot_partition_size" -t2:BF01 "$selected_disk" # Boot pool + sgdisk -n3:0:"$temporary_partition_start" -t3:BF01 "$selected_disk" # Root pool + sgdisk -n4:0:"$tail_space_start" -t4:8300 "$selected_disk" # Temporary partition done # The partition symlinks are not immediately created, so we wait.