From c37e9bcb8613440697f243c61f2e3fd62566b2d3 Mon Sep 17 00:00:00 2001 From: Louis Abel Date: Mon, 21 Nov 2022 23:55:27 -0700 Subject: [PATCH] remove pmbr_boot flag --- Rocky-9-EC2-Base.ks | 3 +++ Rocky-9-EC2-LVM.ks | 3 +++ 2 files changed, 6 insertions(+) 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