sbc-images/includes/disk-layout.ksi
2023-10-17 13:18:09 +05:30

16 lines
591 B
Plaintext

# Initialize the disk
zerombr
# Remove all partitions and initialize the disk with a GPT partition table
clearpart --drives=sda --disklabel=gpt --all
# Create partitions
# The '--size' option takes MB, not MiB
# 134 MB = 128 MiB
# 536 MB = 512 MiB
# 2146 MB = 2.00 GiB
# Keep /boot formatted as ext4 since that's what U-Boot can read
part /boot/efi --asprimary --ondisk=sda --size=134 --label=rockyefi --fstype=efi
part /boot --asprimary --ondisk=sda --size=536 --label=rockyboot --fstype=ext4
part / --asprimary --ondisk=sda --size=2146 --label=rockyroot --fstype=ext4