Skip to content
Snippets Groups Projects
Verified Commit 24009f67 authored by nl6720's avatar nl6720
Browse files

install_arch: align partition end

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
parent 5042d180
No related branches found
No related tags found
1 merge request!830install_arch: align partition end, update root partition type, partition labels and ESP volume label
......@@ -30,21 +30,21 @@
lineinfile: name=/root/.gnupg/dirmngr.conf create=yes line=no-use-tor owner=root group=root mode=0644
- name: Create GRUB embed partitions
command: sgdisk -g --clear -n 1:0:+1M {{ item }} -c 1:boot -t 1:ef02
command: sgdisk -g -I --clear -n 1:0:+1M {{ item }} -c 1:'BIOS boot partition' -t 1:ef02
with_items:
- "{{ system_disks }}"
register: sgdisk
changed_when: "sgdisk.rc == 0"
- name: Create EFI partitions
command: sgdisk -g -n 2:0:+512M {{ item }} -c 2:efi -t 2:ef00
- name: Create EFI system partitions
command: sgdisk -g -I -n 2:0:+512M {{ item }} -c 2:'EFI system partition' -t 2:ef00
with_items:
- "{{ system_disks }}"
register: sgdisk
changed_when: "sgdisk.rc == 0"
- name: Create root partitions
command: sgdisk -n 3:0:0 {{ item }} -c 3:root
command: sgdisk -I -n 3:0:0 {{ item }} -c 3:root -t 3:8304
with_items:
- "{{ system_disks }}"
register: sgdisk
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment