fix disk image layout

This commit is contained in:
Pratham Patel 2023-08-07 09:05:00 +05:30
parent 8efd777a4b
commit 9a378e2619
No known key found for this signature in database
3 changed files with 8 additions and 4 deletions

View File

@ -8,5 +8,5 @@ selinux --enforcing
firewall --enabled --ssh
network --device=link --activate --bootproto=dhcp --onboot=on --hostname=rockylinux
#firstboot --enable --reconfig # TODO: enable this AFTER DISABLING USER SETUP
bootloader --location=mbr --boot-drive=sda
bootloader --location=mbr --boot-drive=sda --extlinux
shutdown # power-off after the installation completes

View File

@ -1,9 +1,12 @@
# initialize the disk
zerombr
# Remove all partitions
clearpart --drives=sda --all
clearpart --drives=sda --all --disklabel=gpt
# Create partitions
# The '--size' option takes MB, not MiB
# 1074 MB = 1 GiB
# 2148 MB = 2 GiB
part /boot --asprimary --ondisk=sda --size=1074 --label=boot --fstype=efi
part / --asprimary --ondisk=sda --size=2148 --label=root --fstype=ext4
part / --asprimary --ondisk=sda --size=2148 --label=root --fstype=ext4 --grow

View File

@ -47,7 +47,8 @@ tmux
#initial-setup
# Remove some packages
-java-11-*
-dracut-config-rescue
-java-11-*
-plymouth
%end