forked from sig_core/kickstarts
Attempt to resolve EC2 issues with 9.1
This commit is contained in:
parent
7b6840c29c
commit
afe002cb5b
@ -16,17 +16,13 @@ rootpw --iscrypted thereisnopasswordanditslocked
|
|||||||
|
|
||||||
# Partition Stuff
|
# Partition Stuff
|
||||||
zerombr
|
zerombr
|
||||||
clearpart --all --initlabel
|
clearpart --all --initlabel --disklabel=gpt
|
||||||
part /boot --fstype xfs --size 1024 --asprimary --ondisk vda
|
#reqpart
|
||||||
part /boot/efi --fstype vfat --size 512 --asprimary --ondisk vda
|
part /boot/efi --size=100 --fstype=efi --asprimary
|
||||||
reqpart
|
part /boot --size=1024 --fstype=xfs --asprimary --label=boot
|
||||||
part / --fstype="xfs" --mkfsoptions "-m bigtime=0,inobtcount=0" --ondisk=vda --size=8000
|
part / --size=8000 --fstype="xfs" --mkfsoptions "-m bigtime=0,inobtcount=0"
|
||||||
shutdown
|
shutdown
|
||||||
|
|
||||||
%pre --erroronfail
|
|
||||||
/usr/sbin/parted -s /dev/vda mklabel gpt
|
|
||||||
%end
|
|
||||||
|
|
||||||
%packages
|
%packages
|
||||||
@core
|
@core
|
||||||
rocky-release
|
rocky-release
|
||||||
@ -82,6 +78,12 @@ rng-tools
|
|||||||
passwd -d root
|
passwd -d root
|
||||||
passwd -l root
|
passwd -l root
|
||||||
|
|
||||||
|
# Attempting to force legacy BIOS boot if we boot from UEFI
|
||||||
|
if [ "$(arch)" = "x86_64" ]; then
|
||||||
|
dnf install grub2-pc-modules grub2-pc -y
|
||||||
|
grub2-install --target=i386-pc /dev/vda
|
||||||
|
fi
|
||||||
|
|
||||||
# setup systemd to boot to the right runlevel
|
# setup systemd to boot to the right runlevel
|
||||||
rm -f /etc/systemd/system/default.target
|
rm -f /etc/systemd/system/default.target
|
||||||
ln -s /lib/systemd/system/multi-user.target /etc/systemd/system/default.target
|
ln -s /lib/systemd/system/multi-user.target /etc/systemd/system/default.target
|
||||||
|
@ -16,19 +16,15 @@ rootpw --iscrypted thereisnopasswordanditslocked
|
|||||||
|
|
||||||
# Partition stuff - Should work for x86 and aarch64
|
# Partition stuff - Should work for x86 and aarch64
|
||||||
zerombr
|
zerombr
|
||||||
clearpart --all --initlabel
|
clearpart --all --initlabel --disklabel=gpt
|
||||||
part /boot --fstype xfs --size 1024 --asprimary --ondisk vda
|
#reqpart
|
||||||
part /boot/efi --fstype vfat --size 512 --asprimary --ondisk vda
|
part /boot/efi --size=100 --fstype=efi --asprimary
|
||||||
reqpart
|
part /boot --size=1024 --fstype=xfs --asprimary --label=boot
|
||||||
part pv.01 --size=1 --ondisk=vda --asprimary --grow
|
part pv.01 --size=1 --ondisk=vda --asprimary --grow
|
||||||
volgroup rocky pv.01
|
volgroup rocky pv.01
|
||||||
logvol / --vgname=rocky --size=8000 --name=root --grow --mkfsoptions "-m bigtime=0,inobtcount=0"
|
logvol / --vgname=rocky --size=8000 --name=root --grow --mkfsoptions "-m bigtime=0,inobtcount=0"
|
||||||
shutdown
|
shutdown
|
||||||
|
|
||||||
%pre --erroronfail
|
|
||||||
/usr/sbin/parted -s /dev/vda mklabel gpt
|
|
||||||
%end
|
|
||||||
|
|
||||||
%packages
|
%packages
|
||||||
@core
|
@core
|
||||||
rocky-release
|
rocky-release
|
||||||
@ -84,6 +80,12 @@ rng-tools
|
|||||||
passwd -d root
|
passwd -d root
|
||||||
passwd -l root
|
passwd -l root
|
||||||
|
|
||||||
|
# Attempting to force legacy BIOS boot if we boot from UEFI
|
||||||
|
if [ "$(arch)" = "x86_64" ]; then
|
||||||
|
dnf install grub2-pc-modules grub2-pc -y
|
||||||
|
grub2-install --target=i386-pc /dev/vda
|
||||||
|
fi
|
||||||
|
|
||||||
# setup systemd to boot to the right runlevel
|
# setup systemd to boot to the right runlevel
|
||||||
rm -f /etc/systemd/system/default.target
|
rm -f /etc/systemd/system/default.target
|
||||||
ln -s /lib/systemd/system/multi-user.target /etc/systemd/system/default.target
|
ln -s /lib/systemd/system/multi-user.target /etc/systemd/system/default.target
|
||||||
|
Loading…
Reference in New Issue
Block a user