diff --git a/Rocky-9-EC2-Base.ks b/Rocky-9-EC2-Base.ks index 426130b..a04c71c 100644 --- a/Rocky-9-EC2-Base.ks +++ b/Rocky-9-EC2-Base.ks @@ -84,6 +84,9 @@ if [ "$(arch)" = "x86_64" ]; then grub2-install --target=i386-pc /dev/vda fi +# Ensure that the pmbr_boot flag is off +parted /dev/vda disk_set pmbr_boot off + # setup systemd to boot to the right runlevel rm -f /etc/systemd/system/default.target ln -s /lib/systemd/system/multi-user.target /etc/systemd/system/default.target diff --git a/Rocky-9-EC2-LVM.ks b/Rocky-9-EC2-LVM.ks index 96645f6..d8480c9 100644 --- a/Rocky-9-EC2-LVM.ks +++ b/Rocky-9-EC2-LVM.ks @@ -86,6 +86,9 @@ if [ "$(arch)" = "x86_64" ]; then grub2-install --target=i386-pc /dev/vda fi +# Ensure that the pmbr_boot flag is off +parted /dev/vda disk_set pmbr_boot off + # setup systemd to boot to the right runlevel rm -f /etc/systemd/system/default.target ln -s /lib/systemd/system/multi-user.target /etc/systemd/system/default.target