From 403173ecc39fddd577e646bd5642d4b6e825452e Mon Sep 17 00:00:00 2001 From: Neil Hanlon Date: Tue, 24 Jan 2023 17:20:08 -0500 Subject: [PATCH] Attempt to fix boot args for OCP images --- Rocky-8-OCP.ks | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Rocky-8-OCP.ks b/Rocky-8-OCP.ks index 5ebfb69..52b9c67 100644 --- a/Rocky-8-OCP.ks +++ b/Rocky-8-OCP.ks @@ -28,7 +28,7 @@ selinux --enforcing # System services services --disabled="kdump" --enabled="NetworkManager,sshd,rsyslog,chronyd,cloud-init,cloud-init-local,cloud-config,cloud-final,rngd" # System bootloader configuration -bootloader --append="console=ttyS0,115200n8 console=tty0 no_timer_check crashkernel=auto net.ifnames=0 LANG=en_US.UTF-8 transparent_hugepage=never rd.luks=0 rd.md=0 rd.dm=0 rd.lvm.vg=rocky rd.lvm.lv=rocky/root rd.net.timeout.dhcp=10" --location=mbr --timeout=1 +bootloader --append="console=ttyS0,115200n8 console=tty0 no_timer_check crashkernel=auto net.ifnames=0 LANG=en_US.UTF-8 transparent_hugepage=never rd.luks=0 rd.md=0 rd.dm=0 rd.lvm.vg=rocky rd.lvm.lv=rocky/root rd.net.timeout.dhcp=10 libiscsi.debug_libiscsi_eh=1 netroot=iscsi:169.254.0.2:::1:iqn.2015-02.oracle.boot:uefi ip=dhcp rd.iscsi.bypass rd.iscsi.param=node.session.timeo.replacement_timeout=6000" --location=mbr --timeout=1 # Clear the Master Boot Record zerombr # Partition clearing information @@ -273,9 +273,6 @@ base64 -d <<<"$OCICLOUDCFG" >> /etc/cloud/cloud.cfg.d/99_oci.cfg KERNEL_VERSION=$(rpm -q kernel --qf '%%{V}-%%{R}.%%{arch}\n') dracut -f /boot/initramfs-$KERNEL_VERSION.img $KERNEL_VERSION -# OCI needs Iscsi -grubby --args="libiscsi.debug_libiscsi_eh=1 netroot=iscsi:169.254.0.2:::1:iqn.2015-02.oracle.boot:uefi ip=dhcp rd.iscsi.bypass rd.iscsi.param=node.session.timeo.replacement_timeout=6000" --update-kernel "/boot/vmlinuz-$KERNEL_VERSION" - passwd -d root passwd -l root