2023-09-13 01:29:56 +00:00
|
|
|
# Initialize the disk
|
|
|
|
zerombr
|
|
|
|
|
2023-10-08 23:43:03 +00:00
|
|
|
# Remove all partitions and initialize the disk with a GPT partition table
|
|
|
|
clearpart --drives=sda --disklabel=gpt --all
|
2023-09-13 01:29:56 +00:00
|
|
|
|
|
|
|
# Create partitions
|
|
|
|
# The '--size' option takes MB, not MiB
|
2023-10-26 11:55:52 +00:00
|
|
|
# 536 MB = 512 MiB
|
2023-10-26 02:42:58 +00:00
|
|
|
# 1072 MB = 1.00 GiB
|
2023-11-11 02:15:33 +00:00
|
|
|
# 3216 MB = 3.00 GiB
|
2023-09-13 01:29:56 +00:00
|
|
|
# Keep /boot formatted as ext4 since that's what U-Boot can read
|
2023-10-26 11:55:52 +00:00
|
|
|
part /boot/efi --asprimary --ondisk=sda --size=536 --label=rockyefi --fstype=efi
|
2023-10-26 02:42:58 +00:00
|
|
|
part /boot --asprimary --ondisk=sda --size=1072 --label=rockyboot --fstype=ext4
|
2023-11-11 02:15:33 +00:00
|
|
|
part / --asprimary --ondisk=sda --size=3216 --label=rockyroot --fstype=ext4
|