install_arch: align partition end, update root partition type, partition labels and ESP volume label
Loading
Due to an influx of spam, we have had to temporarily disable account registrations. Please write an email to accountsupport@archlinux.org, with your desired username, if you want to get access. Sorry for the inconvenience.
sgdisk does not align the partition size/end by default. The
-I
/--align-end
option needs to be used to enable alignment. See
https://wiki.archlinux.org/title/Advanced_Format#Partition_alignment
Additionally use the partition names (PARTLABELs) that gdisk and cgdisk set (but sgdisk doesn't) and follow the Discoverable Partitions Specification by useing the appropriate partition for the root partition. See https://wiki.archlinux.org/title/Partitioning#Single_root_partition
Use an uppercase LABEL to avoid a warning from mkfs.fat:
mkfs.fat: Warning: lowercase labels might not work properly on some systems
Use something other than "efi" as the label since some firmware do not like it. While this is not really an issue for Arch infrastructure, since there is zero change that this will be run on any MSI hardware with its broken firmware, it is best to simply folow the wiki anyway. See https://wiki.archlinux.org/title/EFI_system_partition#Firmware_does_not_see_the_EFI_directory
There is no need to split up partitioning into per-partition tasks.