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

[image mode]EFI variables are not supported on this system.

Linking RHIVOS CVEs to...Migration: Automation ...Sync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • None
    • rhel-9.6.z, rhel-10.0.z, rhel-10.1, rhel-9.7, rhel-10.1.z
    • rust-bootupd
    • None
    • No
    • None
    • rhel-coreos
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • x86_64
    • None

      What were you trying to do that didn't work?

      Building a image mode system from kickstart ostreecontainer in UEFI booting host.

      login the system and run efibootmgr failed with "EFI variables are not supported on this system"

      In beaker lab, if I submit a job on r760 x86_64 system with image mode job, it will let the next job abort. That's why I need change boot order on running system. E.g

      ostreecontainer --url images.paas.redhat.com/mhou/rhel-9:rhel-9.6.0-updates-20250811.3-x86_64-stock-1754992233147
      https://beaker.engineering.redhat.com/jobs/11561640 --pass 

      Then I clone above job and re-run failed. 
      https://beaker.engineering.redhat.com/jobs/11562634

      + efibootmgr -n 0009
      BootNext: 0009
      BootCurrent: 0000
      Timeout: 0 seconds
      BootOrder: 0000,0006,0005,0004,0003,0001,0009
      Boot0000* Embedded NIC 1 Port 1 Partition 1	VenHw(3a191845-5f86-4e78-8fce-c4cff59f9daa)
      Boot0001* Red Hat Enterprise Linux	HD(1,GPT,e551e0c1-71fa-4cc1-bc82-2640cb922419,0x100,0x25800)/\EFI\redhat\shimx64.efi
      Boot0002* BRCM MBA Slot 0100 v21.6.4	BBS(128,BRCM MBA Slot 0100 v21.6.4,0x0)feff0100000000000000000000000200620300c880000000800000c8470300c800000000000000000000000000000000000000000000000000000000000000000000000000110000020000000000001c0002010c00d041030a0000000001010600000c0101060000007fff04004200520043004d0020004d0042004100200053006c006f0074002000300031003000300020007600320031002e0036002e0034000000
      Boot0003  redhat	HD(1,GPT,a4c8ff54-25d2-4708-922e-e66177fa7653,0x100,0x25800)/\EFI\redhat\shimx64.efi
      Boot0004* redhat	HD(1,GPT,f8c329c9-f72d-45a8-a326-0efb5d6f7c47,0x100,0x25800)/\EFI\redhat\shimx64.efi
      Boot0005* redhat	HD(1,GPT,5c82e889-1da0-4462-9093-ae744808f5ec,0x100,0x25800)/\EFI\redhat\shimx64.efi
      Boot0006* redhat	HD(1,GPT,276b2a4d-9b31-493d-81be-cc64e4c3e065,0x100,0x25800)/\EFI\redhat\shimx64.efi
      Boot0007* FlexBoot v3.7.500 (PCI A0:00.0)	BBS(128,FlexBoot v3.7.500 (PCI A0:00.0),0x0)feffa0000000000000000000000002006000e0cb80000000c003e0cb6100e0cb00000000000000000000000000000000000000000000000000000000000000000000000000120000020000000000001c0002010c00d041030a100000000101060000050101060000007fff040046006c006500780042006f006f0074002000760033002e0037002e00350030003000200028005000430049002000410030003a00300030002e00300029000000
      Boot0008* FlexBoot v3.7.500 (PCI A0:00.1)	BBS(128,FlexBoot v3.7.500 (PCI A0:00.1),0x0)feffa000000000000000010000000200600040cd80000000c00340cd610040cd00000000000000000000000000000000000000000000000000000000000000000000000000130000020000000000001c0002010c00d041030a100000000101060000050101060001007fff040046006c006500780042006f006f0074002000760033002e0037002e00350030003000200028005000430049002000410030003a00300030002e00310029000000
      Boot0009* Red Hat Enterprise Linux
      	HD(1,GPT,89f171c2-4125-430e-b148-07169f8187df,0x100,0x25800)/\EFI\redhat\shimx64.efi
      MirroredPercentageAbove4G: 0.00
      MirrorMemoryBelow4GB: false 

       

      package mode run well:

      https://beaker.engineering.redhat.com/jobs/11563231
      https://beaker.engineering.redhat.com/jobs/11563394

      + efibootmgr
      ++ efibootmgr
      ++ awk '/BootOrder/ { print $2 }'
      + boot_order=0000,000A,0009,0003,0001,0002,0004,0005,0006,0007
      ++ cut -d, -f1
      + os_boot_entry=0000
      ++ cut -d, -f2-
      + new_boot_order=000A,0009,0003,0001,0002,0004,0005,0006,0007,0000
      + efibootmgr -o 000A,0009,0003,0001,0002,0004,0005,0006,0007,0000
      BootCurrent: 0000
      Timeout: 0 seconds
      BootOrder: 000A,0009,0003,0001,0002,0004,0005,0006,0007,0000
      Boot0000* Embedded NIC 1 Port 1 Partition 1
      Boot0001  Red Hat Enterprise Linux
      Boot0002  Red Hat Enterprise Linux
      
      Boot0003  redhat
      Boot0004  Red Hat Enterprise Linux
      
      Boot0005  Red Hat Enterprise Linux
      
      Boot0006  Red Hat Enterprise Linux
      
      Boot0007  Red Hat Enterprise Linux
      
      Boot0009  redhat
      Boot000A* redhat
      MirroredPercentageAbove4G: 0.00
      MirrorMemoryBelow4GB: false 

      What is the impact of this issue to you?

      Can't switch boot order on UEFI system with image mode

      Please provide the package NVR for which the bug is seen:

      images.paas.redhat.com/mhou/rhel-9:rhel-9.6.0-updates-20250811.3-x86_64-stock-1754992233147

      images.paas.redhat.com/mhou/rhel-10:rhel-10.0-updates-20250811.2-amd64-rtk-1754991753791

      How reproducible is this bug?: 100%

      Steps to reproduce

      1. deploy image mode on an UEFI booting host
      2. login the system and run efibootmgr
      [root@011-r760-ee58u22 ~]# efibootmgr
      EFI variables are not supported on this system. 
      
      [root@011-r760-ee58u22 ~]# bootctl list
      No boot loader entries found.
      [root@011-r760-ee58u22 ~]# ls /boot/efi
      EFI
      [root@011-r760-ee58u22 ~]# ls /boot/efi/EFI/
      BOOT/   Dell/   redhat/ 
      [root@011-r760-ee58u22 ~]# ls /boot/efi/EFI/
      BOOT  Dell  redhat 
      [root@011-r760-ee58u22 ~]# bootctl --esp-path=/boot/efi/EFI/redhat install
      Directory "/boot/efi/EFI/redhat" is not the root of the file system.
      [root@011-r760-ee58u22 ~]# tree /boot/efi/EFI/
      /boot/efi/EFI/
      ├── BOOT
      │   ├── BOOTX64.EFI
      │   └── fbx64.efi
      ├── Dell
      │   └── BootOptionCache
      │       └── BootOptionCache.dat
      └── redhat
          ├── BOOTX64.CSV
          ├── bootuuid.cfg
          ├── grub.cfg
          ├── grubx64.efi
          ├── mmx64.efi
          ├── shim.efi
          ├── shimx64-redhat.efi
          └── shimx64.efi 

      Debug

      [root@011-r760-ee58u22 ~]# grep CONFIG_EFIVAR_FS /usr/lib/modules/5.14.0-570.35.1.el9_6.x86_64/config 
      CONFIG_EFIVAR_FS=y
      [root@011-r760-ee58u22 ~]# modinfo efivars
      name:           efivars
      filename:       (builtin)
      version:        0.08
      license:        GPL
      file:           drivers/firmware/efi/efivars
      description:    sysfs interface to EFI Variables
      author:         Matt Domsch <Matt_Domsch@Dell.com>
      
      [root@011-r760-ee58u22 ~]# ll /sys/firmware/efi/
      total 0
      -r--r--r--. 1 root root 4096 Aug 19 03:43 config_table
      dr-xr-xr-x. 2 root root    0 Aug 19 03:17 efivars
      -r--r--r--. 1 root root 4096 Aug 19 03:43 fw_platform_size
      -r--r--r--. 1 root root 4096 Aug 19 03:43 fw_vendor
      -r--r--r--. 1 root root 4096 Aug 19 03:43 runtime
      -r--------. 1 root root 4096 Aug 19 03:43 systab
      drwxr-xr-x. 2 root root    0 Aug 19 03:43 tables
      
      
      [root@011-r760-ee58u22 ~]# dmesg | grep -i efi
      [    0.000000] efi: EFI v2.7 by Dell Inc.
      [    0.000000] efi: ACPI=0x777fe000 ACPI 2.0=0x777fe014 TPMFinalLog=0x76523000 MEMATTR=0x5eede4a0 SMBIOS=0x6ff20000 SMBIOS 3.0=0x6fd01000 MOKvar=0x645e0000 RNG=0x774f0020 TPMEventLog=0x774e7020 
      [    0.014465] clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1910969940391419 ns
      [    1.221424] efifb: probing for efifb
      [    1.221434] efifb: framebuffer at 0x94000000, using 3072k, total 3072k
      [    1.221435] efifb: mode is 1024x768x32, linelength=4096, pages=1
      [    1.221436] efifb: scrolling: redraw
      [    1.221437] efifb: Truecolor: size=8:8:8:8, shift=24:16:8:0
      [    1.259649] fb0: EFI VGA frame buffer device
      [    8.361600] systemd[1]: Starting Load Kernel Module efi_pstore...
      [    8.562096] systemd[1]: TPM2 PCR Machine ID Measurement was skipped because of an unmet condition check (ConditionPathExists=/sys/firmware/efi/efivars/StubPcrKernelImage-4a67b082-0a4c-41cf-b6c7-440b29bb8c4f).
      
      [root@011-r760-ee58u22 ~]# cat /proc/cmdline 
      BOOT_IMAGE=(hd0,gpt2)/ostree/default-d5de1dbf48259566fe63c853f188bbf5602e2cca665ffe2bf3f0c22141b279e9/vmlinuz-5.14.0-570.35.1.el9_6.x86_64+rt ostree=/ostree/boot.0/default/d5de1dbf48259566fe63c853f188bbf5602e2cca665ffe2bf3f0c22141b279e9/0 intel_iommu=on pci=realloc crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M resume=/dev/mapper/rhel_011--r760--ee58u22-swap rd.lvm.lv=rhel_011-r760-ee58u22/root rd.lvm.lv=rhel_011-r760-ee58u22/swap root=/dev/mapper/rhel_011--r760--ee58u22-root rw

      Expected results

      should change boot order on image mode 

      Actual results

      both bootctl and efibootmgr didn't work
       

              coreos-bot CoreOS Bot
              mhou@redhat.com HOU MINXI
              CoreOS Bot CoreOS Bot
              CoreOS QE Bot CoreOS QE Bot
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: