Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-4386

GRUB_ENABLE_BLSCFG gets disabled upon kernel updates when running under Xen

    • grub2-2.06-82.el9
    • None
    • Important
    • rhel-sst-desktop-firmware-bootloaders
    • ssg_display
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • If docs needed, set a value
    • None

      GRUB_ENABLE_BLSCFG is forcefully set to "false" in /etc/default/grub after the first kernel update when VM is running under Xen hypervisor. This happens due to a faulty logic in /usr/lib/kernel/install.d/99-grub-mkconfig.install:

      1. PV and PVH Xen DomU guests boot with pygrub that doesn't have BLS support,
      2. also Xen Dom0 use the menuentries from 20_linux_xen and not the ones from
      3. 10_linux. So BLS support needs to be disabled for both Xen Dom0 and DomU.
        if [[ -e /sys/hypervisor/type ]] && grep -q "^xen$" /sys/hypervisor/type; then
        RUN_MKCONFIG=true
        DISABLE_BLS=true
        fi

      The check could probably be fine tuned to only affect Xen PV/PVH as the comment states (and not Xen HVM which is far more widespread) but RHEL9 does not support XEN PV and PVH at all as we have:

      1. CONFIG_XEN_PV is not set
        in the kernel. RHEL9 only support Xen HVM to be able to run in AWS, there's no pygrub usage there.

      This piece of logic can just go away in RHEL9 I believe.

              rh-ee-nfrayer Nicolas Frayer
              vkuznets@redhat.com Vitaly Kuznetsov
              Nicolas Frayer Nicolas Frayer
              Frank Liang Frank Liang
              Votes:
              0 Vote for this issue
              Watchers:
              14 Start watching this issue

                Created:
                Updated:
                Resolved: