From 0a16a1b5cf1b3fbfe6bc8b95fcf19b645fef0389 Mon Sep 17 00:00:00 2001 From: Louis Abel Date: Wed, 14 Sep 2022 23:34:37 -0700 Subject: [PATCH] fix grub2-pc package name and comment out sed --- Rocky-9-GenericCloud.ks | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Rocky-9-GenericCloud.ks b/Rocky-9-GenericCloud.ks index 2bdad62..52c9a66 100644 --- a/Rocky-9-GenericCloud.ks +++ b/Rocky-9-GenericCloud.ks @@ -92,7 +92,7 @@ passwd -l root # Attempting to force legacy BIOS boot if we boot from UEFI if [ "$(arch)" = "x86_64" ]; then - dnf install grub2-pc-modules grub-pc -y + dnf install grub2-pc-modules grub2-pc -y grub2-install --target=i386-pc /dev/vda fi @@ -202,7 +202,7 @@ rm -f /var/lib/systemd/random-seed cat /dev/null > /etc/machine-id # reorder console entries -sed -i 's/console=tty0/console=tty0 console=ttyS0,115200n8/' /boot/grub2/grub.cfg +#sed -i 's/console=tty0/console=tty0 console=ttyS0,115200n8/' /boot/grub2/grub.cfg true