Comment 12 for bug 1970257

Revision history for this message
Alan Baghumian (alanbach) wrote :

Did a quick change on packer-maas Kickstart files, turning BLS off:

alan@veloci:~/Canonical/git/packer-maas$ git diff
diff --git a/rhel8/http/rhel8.ks.in b/rhel8/http/rhel8.ks.in
index ff8d6bf..d05bd3f 100644
--- a/rhel8/http/rhel8.ks.in
+++ b/rhel8/http/rhel8.ks.in
@@ -39,6 +39,7 @@ rm -f /etc/sysconfig/network-scripts/ifcfg-[^lo]*
 sed -i 's/^GRUB_TERMINAL=.*/GRUB_TERMINAL_OUTPUT="console"/g' /etc/default/grub
 sed -i '/GRUB_SERIAL_COMMAND="serial"/d' /etc/default/grub
 sed -ri 's/(GRUB_CMDLINE_LINUX=".*)\s+console=ttyS0(.*")/\1\2/' /etc/default/grub
+sed -i s/"GRUB_ENABLE_BLSCFG=.*"/"GRUB_ENABLE_BLSCFG=false"/g /etc/default/grub

 dnf clean all
 %end
diff --git a/rhel9/http/rhel9.ks.in b/rhel9/http/rhel9.ks.in
index ff8d6bf..d05bd3f 100644
--- a/rhel9/http/rhel9.ks.in
+++ b/rhel9/http/rhel9.ks.in
@@ -39,6 +39,7 @@ rm -f /etc/sysconfig/network-scripts/ifcfg-[^lo]*
 sed -i 's/^GRUB_TERMINAL=.*/GRUB_TERMINAL_OUTPUT="console"/g' /etc/default/grub
 sed -i '/GRUB_SERIAL_COMMAND="serial"/d' /etc/default/grub
 sed -ri 's/(GRUB_CMDLINE_LINUX=".*)\s+console=ttyS0(.*")/\1\2/' /etc/default/grub
+sed -i s/"GRUB_ENABLE_BLSCFG=.*"/"GRUB_ENABLE_BLSCFG=false"/g /etc/default/grub

 dnf clean all
 %end

Then downloaded the latest RHEL 9.2 and 8.8 DVD ISOs and created new images for MAAS:

$ maas homelab boot-resources create name='custom/rhel-9.2-20230912-no-bls' title='RHEL 9.2 20230912 No BLS' architecture='amd64/generic' filetype='tgz' base_image='rhel/9' content@=rhel-9.2-20230912-no-bls.tar.gz

$ maas homelab boot-resources create name='custom/rhel-8.8-20230912-no-bls' title='RHEL 8.8 20230912 No BLS' architecture='amd64/generic' filetype='tgz' base_image='rhel/8' content@=rhel-8.8-20230912-no-bls.tar.gz

After that performed two deployments (9.2 / 8.8) using the "custom" disk layout and then two extra deployments (9.2 / 8.8) with the default Flat disk layout and all tests worked w/o an issue.

Best,
Alan