BOOM fails to install kernel options defined in /etc/default/grub
Issue
-
Creating BOOM OS profile does not include the kernel command line options specified in
/etc/default/grub
file.For example, serial console options present in following grub configuration are not picked up by newly created BOOM OS entry:
# cat /etc/default/grub GRUB_TIMEOUT=5 GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)" GRUB_DEFAULT=saved GRUB_DISABLE_SUBMENU=true GRUB_TERMINAL_OUTPUT="console" GRUB_GFXMODE=text GRUB_TERMINAL="serial console" GRUB_CMDLINE_LINUX="crashkernel=auto resume=/dev/mapper/rootvg-swap rd.lvm.lv=roovg/root rd.lvm.lv=rootvg/swap console=ttyS0 console=ttyS0,115200n8" GRUB_DISABLE_RECOVERY="true" GRUB_ENABLE_BLSCFG=true GRUB_SERIAL_COMMAND="serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1"
Created new BOOM OS profile, but it doesn't include above kernel command line options:
$ boom create --title "Base OS" --rootlv rootvg/root_base Created entry with boot_id xxxxxxxx: title Base OS machine-id 1234567890abcdefghijklmnopqrstuv version 4.18.0-80.11.2.el8_0.x86_64 linux /vmlinuz-4.18.0-80.11.2.el8_0.x86_64 initrd /initramfs-4.18.0-80.11.2.el8_0.x86_64.img options root=/dev/rootvg/root_base ro rd.lvm.lv=rootvg/root_base <--- options present in GRUB_CMDLINE_LINUX or /proc/cmdline are missing
Specifying the
--os-options
is prone to problems as it doesn't appear to create the swap parameter:$ boom profile create --from-host --uname-pattern el8 --os-options "crashkernel=auto console=ttyS0 console=ttyS0,115200n8"
Can we have an option to create a working entry with the same kernel boot options as present in
/etc/default/grub
?
Environment
- Red Hat Enterprise Linux (RHEL) 8
- Red Hat Enterprise Linux (RHEL) 9
- BOOM 1.0-0.2
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.