From da5f8229b23256a539bf31d9d182ecbb5fe3efff Mon Sep 17 00:00:00 2001 From: Louis Abel Date: Mon, 28 Nov 2022 23:43:41 -0700 Subject: [PATCH] try to forcefully create a grub.cfg --- Rocky-8-EC2-Base.ks | 1 + Rocky-8-EC2-LVM.ks | 1 + Rocky-8-GenericCloud-Base.ks | 1 + Rocky-8-GenericCloud-LVM.ks | 1 + cloud/rocky-ec2-base.ks | 1 + cloud/rocky-ec2-lvm.ks | 1 + cloud/rocky-genclo-base.ks | 1 + cloud/rocky-genclo-lvm.ks | 1 + 8 files changed, 8 insertions(+) diff --git a/Rocky-8-EC2-Base.ks b/Rocky-8-EC2-Base.ks index 332c966..d0cdf46 100644 --- a/Rocky-8-EC2-Base.ks +++ b/Rocky-8-EC2-Base.ks @@ -49,6 +49,7 @@ passwd -l root if [ "$(arch)" = "x86_64" ]; then dnf install grub2-pc-modules grub2-pc -y grub2-install --target=i386-pc /dev/vda + grub2-mkconfig -o /boot/grub2/grub.cfg --no-grubenv-update fi # Ensure that the pmbr_boot flag is off diff --git a/Rocky-8-EC2-LVM.ks b/Rocky-8-EC2-LVM.ks index 3e4885d..acea30c 100644 --- a/Rocky-8-EC2-LVM.ks +++ b/Rocky-8-EC2-LVM.ks @@ -51,6 +51,7 @@ passwd -l root if [ "$(arch)" = "x86_64" ]; then dnf install grub2-pc-modules grub2-pc -y grub2-install --target=i386-pc /dev/vda + grub2-mkconfig -o /boot/grub2/grub.cfg --no-grubenv-update fi # Ensure that the pmbr_boot flag is off diff --git a/Rocky-8-GenericCloud-Base.ks b/Rocky-8-GenericCloud-Base.ks index a72c001..0d2870e 100644 --- a/Rocky-8-GenericCloud-Base.ks +++ b/Rocky-8-GenericCloud-Base.ks @@ -110,6 +110,7 @@ passwd -l root if [ "$(arch)" = "x86_64" ]; then dnf install grub2-pc-modules grub2-pc -y grub2-install --target=i386-pc /dev/vda + grub2-mkconfig -o /boot/grub2/grub.cfg --no-grubenv-update fi # Ensure that the pmbr_boot flag is off diff --git a/Rocky-8-GenericCloud-LVM.ks b/Rocky-8-GenericCloud-LVM.ks index 6b27814..a8959ec 100644 --- a/Rocky-8-GenericCloud-LVM.ks +++ b/Rocky-8-GenericCloud-LVM.ks @@ -111,6 +111,7 @@ passwd -l root if [ "$(arch)" = "x86_64" ]; then dnf install grub2-pc-modules grub2-pc -y grub2-install --target=i386-pc /dev/vda + grub2-mkconfig -o /boot/grub2/grub.cfg --no-grubenv-update fi # Ensure that the pmbr_boot flag is off diff --git a/cloud/rocky-ec2-base.ks b/cloud/rocky-ec2-base.ks index 0b23ed5..3fa597b 100644 --- a/cloud/rocky-ec2-base.ks +++ b/cloud/rocky-ec2-base.ks @@ -13,6 +13,7 @@ passwd -l root if [ "$(arch)" = "x86_64" ]; then dnf install grub2-pc-modules grub2-pc -y grub2-install --target=i386-pc /dev/vda + grub2-mkconfig -o /boot/grub2/grub.cfg --no-grubenv-update fi # Ensure that the pmbr_boot flag is off diff --git a/cloud/rocky-ec2-lvm.ks b/cloud/rocky-ec2-lvm.ks index d066003..2a49771 100644 --- a/cloud/rocky-ec2-lvm.ks +++ b/cloud/rocky-ec2-lvm.ks @@ -13,6 +13,7 @@ passwd -l root if [ "$(arch)" = "x86_64" ]; then dnf install grub2-pc-modules grub2-pc -y grub2-install --target=i386-pc /dev/vda + grub2-mkconfig -o /boot/grub2/grub.cfg --no-grubenv-update fi # Ensure that the pmbr_boot flag is off diff --git a/cloud/rocky-genclo-base.ks b/cloud/rocky-genclo-base.ks index 0253fdb..54cbb75 100644 --- a/cloud/rocky-genclo-base.ks +++ b/cloud/rocky-genclo-base.ks @@ -13,6 +13,7 @@ passwd -l root if [ "$(arch)" = "x86_64" ]; then dnf install grub2-pc-modules grub2-pc -y grub2-install --target=i386-pc /dev/vda + grub2-mkconfig -o /boot/grub2/grub.cfg --no-grubenv-update fi # Ensure that the pmbr_boot flag is off diff --git a/cloud/rocky-genclo-lvm.ks b/cloud/rocky-genclo-lvm.ks index 9b9fa27..0a8507c 100644 --- a/cloud/rocky-genclo-lvm.ks +++ b/cloud/rocky-genclo-lvm.ks @@ -13,6 +13,7 @@ passwd -l root if [ "$(arch)" = "x86_64" ]; then dnf install grub2-pc-modules grub2-pc -y grub2-install --target=i386-pc /dev/vda + grub2-mkconfig -o /boot/grub2/grub.cfg --no-grubenv-update fi # Ensure that the pmbr_boot flag is off