What were you trying to do that didn't work?
grub2-mkconfig test failed in RHEL-9.4 bootc images.
bash-5.1# grub2-mkconfig -o /tmp/grub.cfg --no-grubenv-update /usr/sbin/grub2-probe: error: failed to get canonical path of `overlay'. bash-5.1# rpm -qf /sbin/grub2-mkconfig grub2-tools-2.06-80.el9_4.x86_64 bash-5.1# cat /proc/cmdline BOOT_IMAGE=(hd0,gpt3)/boot/ostree/default-be2b52828e876ef0a05c25ae376b89a62d0993602198981aebbd745cbb7486a3/vmlinuz-5.14.0-427.31.1.el9_4.x86_64 root=UUID=c81c5040-dac2-4a7a-a1a4-cdf5baa51183 rw boot=UUID=efce9f9c-45ae-4bfc-89b1-f9ad0aae8ac7 rw console=tty0 console=ttyS0 console=ttyS0,115200n8 net.ifnames=0 nvme_core.io_timeout=4294967295 ostree=/ostree/boot.0/default/be2b52828e876ef0a05c25ae376b89a62d0993602198981aebbd745cbb7486a3/0 crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M bash-5.1# df -h Filesystem Size Used Avail Use% Mounted on devtmpfs 4.0M 0 4.0M 0% /dev tmpfs 16G 84K 16G 1% /dev/shm tmpfs 6.2G 768K 6.2G 1% /run /dev/nvme0n1p4 999G 34G 966G 4% /sysroot overlay 33M 33M 0 100% / tmpfs 16G 8.0K 16G 1% /tmp /dev/nvme0n1p3 974M 62M 845M 7% /boot /dev/nvme0n1p2 501M 7.1M 494M 2% /boot/efi tmpfs 3.1G 0 3.1G 0% /run/user/1000 bash-5.1# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS loop0 7:0 0 32.9M 1 loop zram0 252:0 0 8G 0 disk [SWAP] nvme1n1 259:0 0 232.8G 0 disk nvme0n1 259:1 0 1000G 0 disk ├─nvme0n1p1 259:2 0 1M 0 part ├─nvme0n1p2 259:3 0 501M 0 part /boot/efi ├─nvme0n1p3 259:4 0 1G 0 part /boot └─nvme0n1p4 259:5 0 998.5G 0 part /var /sysroot/ostree/deploy/default/var /etc /sysroot
Please provide the package NVR for which bug is seen:
5.14.0-427.31.1.el9_4.x86_64
How reproducible:
Steps to reproduce
start a RHEL-9.4 bootc image
check whether grub2-mkconfig can generate config successfully
Expected results
If grub2-tools supports image mode, grub2-mkconfig should be able to generate config successfully.
If grub2-tools does not support image mode, better to return with not support msg.
Actual results
grub2-mkconfig reports failure
- is duplicated by
-
RHEL-61144 Can't update Grub2 in bootc system
- Closed