View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0017394 | CentOS-8 | grub2 | public | 2020-05-25 10:49 | 2020-05-25 10:49 |
Reporter | caribou78 | Assigned To | |||
Priority | normal | Severity | major | Reproducibility | always |
Status | new | Resolution | open | ||
Product Version | 8.1.1911 | ||||
Summary | 0017394: blscfg module fails to create boot params correctly when using UEFI | ||||
Description | When converting the latest CentOS-8-GenericCloud-8.1.1911-20200113.3.x86_64.qcow2 image to boot using UEFI and QEMU, the blscfg module fails to create the correct boot params in /boot/loader/entries. The content of the normal {uuid}-4.18.0-147.3.1.el8_1.x86_64.conf has : load_video set gfx_payload=keep insmod gzio linux ($root)/boot/vmlinuz-4.18.0-147.3.1.el8_1.x86_64 initrd ($root)/boot/initramfs-4.18.0-147.3.1.el8_1.x86_64.img $tuned_initrd When booting the same image in BIOS mode, the $kernelopts value is correctly completed and the entry has : load_video set gfx_payload=keep insmod gzio linux ($root)/boot/vmlinuz-4.18.0-147.3.1.el8_1.x86_64 root=UUID=c7b1ead0-f176\ -4f23-b9c7-299eb4a06cef ro console=ttyS0,115200n8 no_timer_check net.ifnames=0\ crashkernel=auto initrd ($root)/boot/initramfs-4.18.0-147.3.1.el8_1.x86_64.img $tuned_initrd Running the blscfg module in debug shows for the BIOS mode : grub> set pager=off grub> set debug=all script/script.c:65: free 0x7fdf7e00 script/script.c:65: free 0x7fdf8090 script/script.c:65: free 0x7fdf80b0 script/script.c:65: free 0x7fdf7e20 script/script.c:65: free 0x7fdf7e50 script/script.c:65: free 0x7fdf7e70 script/script.c:65: free 0x7fdf7ea0 script/script.c:65: free 0x7fdf7ed0 script/script.c:65: free 0x7fdf7f90 script/script.c:65: free 0x7fdf8000 script/script.c:65: free 0x7fdf8030 script/script.c:65: free 0x7fdf8050 grub> blscfg script/lexer.c:321: token 288 text [blscfg] script/script.c:50: malloc 0x7fdf8050 script/script.c:50: malloc 0x7fdf8030 script/script.c:163: arglist script/script.c:50: malloc 0x7fdf8000 script/lexer.c:321: token 259 text [ ] script/script.c:50: malloc 0x7fdf7fd0 script/script.c:50: malloc 0x7fdf7fb0 script/script.c:198: cmdline script/script.c:50: malloc 0x7fdf7f80 script/lexer.c:321: token 0 text [] script/script.c:50: malloc 0x7fdf7f50 script/script.c:50: malloc 0x7fdf7f30 script/script.c:294: append command script/script.c:50: malloc 0x7fdf7f10 commands/blscfg.c:868: finding boot commands/blscfg.c:881: opening hd0,msdos1 kern/disk.c:196: Opening `hd0,msdos1'... partmap/msdos.c:188: partition 0: flag 0x80, type 0x83, start 0x800, len 0xfa0000 commands/blscfg.c:886: probing fs kern/fs.c:56: Detecting xfs... fs/xfs.c:907: Reading sb fs/xfs.c:257: Validating superblock fs/xfs.c:269: XFS v5 superblock detected fs/xfs.c:935: Reading root ino 128 fs/xfs.c:493: Reading inode (128) - 128, 0 fs/xfs.c:493: Reading inode (128) - 128, 0 commands/blscfg.c:802: scanning blsdir: /loader/entries/ fs/xfs.c:907: Reading sb fs/xfs.c:257: Validating superblock fs/xfs.c:269: XFS v5 superblock detected fs/xfs.c:935: Reading root ino 128 fs/xfs.c:493: Reading inode (128) - 128, 0 fs/xfs.c:493: Reading inode (128) - 128, 0 fs/xfs.c:493: Reading inode (128) - 128, 0 fs/xfs.c:493: Reading inode (131) - 128, 1536 fs/xfs.c:493: Reading inode (4194432) - 4096128, 0 fs/xfs.c:493: Reading inode (8409216) - 8212608, 0 fs/xfs.c:493: Reading inode (12583040) - 12288128, 0 fs/xfs.c:493: Reading inode (132) - 128, 2048 fs/xfs.c:493: Reading inode (4194433) - 4096128, 512 fs/xfs.c:493: Reading inode (8409217) - 8212608, 512 fs/xfs.c:493: Reading inode (4194435) - 4096128, 1536 fs/xfs.c:493: Reading inode (9182) - 9176, 3072 fs/xfs.c:493: Reading inode (172) - 168, 2048 fs/xfs.c:493: Reading inode (9186) - 9184, 1024 fs/xfs.c:493: Reading inode (171) - 168, 1536 fs/xfs.c:493: Reading inode (4194872) - 4096568, 0 fs/xfs.c:493: Reading inode (9185) - 9184, 512 fs/xfs.c:493: Reading inode (4194876) - 4096568, 2048 fs/xfs.c:493: Reading inode (8409635) - 8213024, 1536 fs/xfs.c:493: Reading inode (12583538) - 12288624, 1024 fs/xfs.c:493: Reading inode (170) - 168, 1024 fs/xfs.c:493: Reading inode (4194877) - 4096568, 2560 commands/blscfg.c:812: read_entry returned error commands/blscfg.c:823: Entries weren't found in /loader/entries/, fallback to /boot/loader/entries/ fs/xfs.c:907: Reading sb fs/xfs.c:257: Validating superblock fs/xfs.c:269: XFS v5 su[25;23H[25;24Hperblock detected fs/xfs.c:935: Reading root ino 128 fs/xfs.c:493: Reading inode (128) - 128, 0 fs/xfs.c:493: Reading inode (128) - 128, 0 fs/xfs.c:493: Reading inode (128) - 128, 0 fs/xfs.c:493: Reading inode (131) - 128, 1536 fs/xfs.c:493: Reading inode (4194432) - 4096128, 0 fs/xfs.c:493: Reading inode (8409216) - 8212608, 0 fs/xfs.c:493: Reading inode (12583040) - 12288128, 0 fs/xfs.c:493: Reading inode (132) - 128, 2048 fs/xfs.c:493: Reading inode (4194433) - 4096128, 512 fs/xfs.c:493: Reading inode (8409217) - 8212608, 512 fs/xfs.c:493: Reading inode (4194435) - 4096128, 1536 fs/xfs.c:493: Reading inode (9182) - 9176, 3072 fs/xfs.c:493: Reading inode (172) - 168, 2048 fs/xfs.c:493: Reading inode (9186) - 9184, 1024 fs/xfs.c:493: Reading inode (171) - 168, 1536 fs/xfs.c:493: Reading inode (4194872) - 4096568, 0 fs/xfs.c:493: Reading inode (4194872) - 4096568, 0 fs/xfs.c:493: Reading inode (128) - 128, 0 fs/xfs.c:493: Reading inode (8861625) - 8665016, 512 fs/xfs.c:493: Reading inode (4201010) - 4102704, 1024 fs/xfs.c:493: Reading inode (4428460) - 4330152, 2048 fs/xfs.c:493: Reading inode (4428460) - 4330152, 2048 fs/xfs.c:493: Reading inode (4194872) - 4096568, 0 fs/xfs.c:493: Reading inode (9463415) - 9266800, 3584 fs/xfs.c:493: Reading inode (9463415) - 9266800, 3584 commands/blscfg.c:452: filename: "." fs/xfs.c:493: Reading inode (4428460) - 4330152, 2048 commands/blscfg.c:452: filename: ".." fs/xfs.c:493: Reading inode (9464029) - 9267416, 2560 commands/blscfg.c:452: filename: "7ff4fc166dc9441f98fc8885019b71e6-4.18.0-147.3.1.el8_1.x86_64.conf" kern/disk.c:196: Opening `hd0,msdos1'... partmap/msdos.c:188: partition 0: flag 0x80, type 0x83, start 0x800, len 0xfa0000 kern/fs.c:56: Detecting xfs... fs/xfs.c:907: Reading sb fs/xfs.c:257: Validating superblock fs/xfs.c:269: XFS v5 superblock detected fs/xfs.c:935: Reading root ino 128 fs/xfs.c:493: Reading inode (128) - 128, 0 fs/xfs.c:493: Reading inode (128) - 128, 0 fs/xfs.c:907: Reading sb fs/xfs.c:257: Validating superblock fs/xfs.c:269: XFS v5 superblock detected fs/xfs.c:935: Reading root ino 128 fs/xfs.c:493: Reading inode (128) - 128, 0 fs/xfs.c:493: Reading inode (128) - 128, 0 fs/xfs.c:493: Reading inode (128) - 128, 0 fs/xfs.c:493: Reading inode (131) - 128, 1536 fs/xfs.c:493: Reading inode (4194432) - 4096128, 0 fs/xfs.c:493: Reading inode (8409216) - 8212608, 0 fs/xfs.c:493: Reading inode (12583040) - 12288128, 0 fs/xfs.c:493: Reading inode (132) - 128, 2048 fs/xfs.c:493: Reading inode (4194433) - 4096128, 512 fs/xfs.c:493: Reading inode (8409217) - 8212608, 512 fs/xfs.c:493: Reading inode (4194435) - 4096128, 1536 fs/xfs.c:493: Reading inode (9182) - 9176, 3072 fs/xfs.c:493: Reading inode (172) - 168, 2048 fs/xfs.c:493: Reading inode (9186) - 9184, 1024 fs/xfs.c:493: Reading inode (171) - 168, 1536 fs/xfs.c:493: Reading inode (4194872) - 4096568, 0 fs/xfs.c:493: Reading inode (4194872) - 4096568, 0 fs/xfs.c:493: Reading inode (128) - 128, 0 fs/xfs.c:493: Reading inode (8861625) - 8665016, 512 fs/xfs.c:493: Reading inode (4201010) - 4102704, 1024 fs/xfs.c:493: Reading inode (4428460) - 4330152, 2048 fs/xfs.c:493: Reading inode (4428460) - 4330152, 2048 fs/xfs.c:493: Reading inode (4194872) - 4096568, 0 fs/xfs.c:493: Reading inode (9463415) - 9266800, 3584 fs/xfs.c:493: Reading inode (9463415) - 9266800, 3584 fs/xfs.c:493: Reading inode (4428460) - 4330152, 2048 fs/xfs.c:493: Reading inode (9464029) - 9267416, 2560 commands/blscfg.c:135: new keyval at 0x7fedd900:title:CentOS Linux (4.18.0-147.3.1.el8_1.x86_64) 8 (Core) commands/blscfg.c:135: new keyval at 0x7fedd870:version:4.18.0-147.3.1.el8_1.x86_64 commands/blscfg.c:135: new keyval at 0x7fedd800:linux:/boot/vmlinuz-4.18.0-147.3.1.el8_1.x86_64 commands/blscfg.c:135: new keyval at 0x7fedd970:initrd:/boot/initramfs-4.18.0-147.3.1.el8_1.x86_64.img $tuned_initrd commands/blscfg.c:135: new keyval at 0x7fedd930:options:$kernelopts $tuned_params commands/blscfg.c:135: new keyval at 0x7fedd650:id:centos-20200104000231-4.18.0-147.3.1.el8_1.x86_64 commands/blscfg.c:135: new keyval at 0x7fedd5c0:grub_users:$grub_users commands/blscfg.c:135: new keyval at 0x7fedd560:grub_arg:--unrestricted commands/blscfg.c:135: new keyval at 0x7fedd730:grub_class:kernel kern/disk.c:295: Closing `hd0'. fs/xfs.c:493: Reading inode (9464033) - 9267424, 512 commands/blscfg.c:452: filename: "7ff4fc166dc9441f98fc8885019b71e6-0-rescue.conf" kern/disk.c:196: Opening `hd0,msdos1'... partmap/msdos.c:188: partition 0: flag 0x80, type 0x83, start 0x800, len 0xfa0000 kern/fs.c:56: Detecting xfs... fs/xfs.c:907: Reading sb fs/xfs.c:257: Validating superblock fs/xfs.c:269: XFS v5 superblock detected fs/xfs.c:935: Reading root ino 128 fs/xfs.c:493: Reading inode (128) - 128, 0 fs/xfs.c:493: Reading inode (128) - 128, 0 fs/xfs.c:907: Reading sb fs/xfs.c:257: Validating superblock fs/xfs.c:269: XFS v5 superblock detected fs/xfs.c:935: Reading root ino 128 fs/xfs.c:493: Reading inode (128) - 128, 0 fs/xfs.c:493: Reading inode (128) - 128, 0 fs/xfs.c:493: Reading inode (128) - 128, 0 fs/xfs.c:493: Reading inode (131) - 128, 1536 fs/xfs.c:493: Read[25;18H[25;19Hing inode (4194432) - 4096128, 0 fs/xfs.c:493: Reading inode (8409216) - 8212608, 0 fs/xfs.c:493: Reading inode (12583040) - 12288128, 0 fs/xfs.c:493: Reading inode (132) - 128, 2048 fs/xfs.c:493: Reading inode (4194433) - 4096128, 512 fs/xfs.c:493: Reading inode (8409217) - 8212608, 512 fs/xfs.c:493: Reading inode (4194435) - 4096128, 1536 fs/xfs.c:493: Reading inode (9182) - 9176, 3072 fs/xfs.c:493: Reading inode (172) - 168, 2048 fs/xfs.c:493: Reading inode (9186) - 9184, 1024 fs/xfs.c:493: Reading inode (171) - 168, 1536 fs/xfs.c:493: Reading inode (4194872) - 4096568, 0 fs/xfs.c:493: Reading inode (4194872) - 4096568, 0 fs/xfs.c:493: Reading inode (128) - 128, 0 fs/xfs.c:493: Reading inode (8861625) - 8665016, 512 fs/xfs.c:493: Reading inode (4201010) - 4102704, 1024 fs/xfs.c:493: Reading inode (4428460) - 4330152, 2048 fs/xfs.c:493: Reading inode (4428460) - 4330152, 2048 fs/xfs.c:493: Reading inode (4194872) - 4096568, 0 fs/xfs.c:493: Reading inode (9463415) - 9266800, 3584 fs/xfs.c:493: Reading inode (9463415) - 9266800, 3584 fs/xfs.c:493: Reading inode (4428460) - 4330152, 2048 fs/xfs.c:493: Reading inode (9464029) - 9267416, 2560 fs/xfs.c:493: Reading inode (9464033) - 9267424, 512 commands/blscfg.c:135: new keyval at 0x7fedd3b0:title:CentOS Linux (0-rescue-7ff4fc166dc9441f98fc8885019b71e6) 8 (Core) commands/blscfg.c:135: new keyval at 0x7fedd340:version:0-rescue-7ff4fc166dc9441f98fc8885019b71e6 commands/blscfg.c:135: new keyval at 0x7fedd230:linux:/vmlinuz-0-rescue-7ff4fc166dc9441f98fc8885019b71e6 commands/blscfg.c:135: new keyval at 0x7fedd390:initrd:/initramfs-0-rescue-7ff4fc166dc9441f98fc8885019b71e6.img commands/blscfg.c:135: new keyval at 0x7fedd3d0:options:$kernelopts commands/blscfg.c:135: new keyval at 0x7fedd1a0:id:centos-20200104000231-0-rescue-7ff4fc166dc9441f98fc8885019b71e6 commands/blscfg.c:135: new keyval at 0x7fedd030:grub_users:$grub_users commands/blscfg.c:135: new keyval at 0x7fedcf80:grub_arg:--unrestricted commands/blscfg.c:135: new keyval at 0x7fedd160:grub_class:kernel kern/disk.c:295: Closing `hd0'. commands/blscfg.c:828: Sorting 2 entries commands/blscfg.c:206: vercmp comparing 0-rescue and 4.18.0 commands/blscfg.c:837: find_entry Creating 2 e[25;46H[25;47Hntries from bls commands/blscfg.c:687: create_entry got here commands/blscfg.c:726: adding menu entry for "CentOS Linux (4.18.0-147.3.1.el8_1.x86_64) 8 (Core)" with id "7ff4fc166dc9441f98fc8885019b71e6-4.18.0-147.3.1.el8_1.x86_64" commands/blscfg.c:748: adding initrd /boot/initramfs-4.18.0-147.3.1.el8_1. x86_64.img $tuned_initrd commands/menuentry.c:152: id:"7ff4fc166dc9441f98fc8885019b71e6-4.18.0-147.3.1.el8_1.x86_64" commands/menuentry.c:153: title:"CentOS Linux (4.18.0-147.3.1.el8_1.x86_64) 8 (Core)" commands/menuentry.c:157: menu_id:"7ff4fc166dc9441f98fc8885019b71e6-4.18.0-147.3.1.el8_1.x86_64" commands/blscfg.c:764: Added entry 2 id:"7ff4fc166dc9441f98fc8885019b71e6-4.18.0-147.3.1.el8_1.x86_64" commands/blscfg.c:687: create_entry got here commands/blscfg.c:726: adding menu entry for "CentOS Linux (0-rescue-7ff4fc166dc9441f98fc8885019b71e6) 8 (Core)" with id "7ff4fc166dc9441f98fc8885019b71e6-0-rescue" commands/blscfg.c:748: adding initrd /initramfs-0-rescue-7ff4fc166dc9441f98fc8885019b71e6.img commands/menuentry.c:152: id:"7ff4fc166dc9441f98fc8885019b71e6-0-rescue" commands/menuentry.c:153: title:"CentOS Linux (0-rescue-7ff4fc166dc9441f98fc8885019b71e6) 8 (Core)" commands/menuentry.c:157: menu_id:"7ff4fc166dc9441f98fc8885019b71e6-0-rescue" commands/blscfg.c:764: Added entry 3 id:"7ff4fc166dc9441f98fc8885019b71e6-0-rescue" kern/disk.c:295: Closing `hd0'. script/script.c:65: free 0x7fdf7f10 script/script.c:65: free 0x7fdf7f30 script/script.c:65: free 0x7fdf7f50 script/script.c:65: free 0x7fdf7f80 script/script.c:65: free 0x7fdf7fb0 script/script.c:65: free 0x7fdf7fd0 script/script.c:65: free 0x7fdf8000 script/script.c:65: free 0x7fdf8030 script/script.c:65: free 0x7fdf8050 When running the same blscfg module when booting using UEFI (hence with the grub2-uefi package set) we get : grub> set pager=off grub> set debug=all script/script.c:65: free 0x7bd1d400 script/script.c:65: free 0x7bd1d440 script/script.c:65: free 0x7bd1d480 script/script.c:65: free 0x7bd1d040 script/script.c:65: free 0x7bd1d0a0 script/script.c:65: free 0x7bd1d0e0 script/script.c:65: free 0x7bd1d140 script/script.c:65: free 0x7bd1d1a0 script/script.c:65: free 0x7bd1d280 script/script.c:65: free 0x7bd1d360 script/script.c:65: free 0x7bd1d3c0 script/script.c:65: free 0x7bd1d720 grub> blscfg script/lexer.c:321: token 288 text [blscfg] script/script.c:50: malloc 0x7bd1d3a0 script/script.c:50: malloc 0x7bd1d360 script/script.c:163: arglist script/script.c:50: malloc 0x7bd1d300 script/lexer.c:321: token 259 text [ ] script/script.c:50: malloc 0x7bd1d2a0 script/script.c:50: malloc 0x7bd1d260 script/script.c:198: cmdline script/script.c:50: malloc 0x7bd1d200 script/lexer.c:321: token 0 text [] script/script.c:50: malloc 0x7bd1d480 script/script.c:50: malloc 0x7bd1d1c0 script/script.c:294: append command script/script.c:50: malloc 0x7bd1d180 commands/blscfg.c:868: finding boot commands/blscfg.c:881: opening hd0,gpt2 kern/disk.c:196: Opening `hd0,gpt2'... disk/efi/efidisk.c:476: opening hd0 disk/efi/efidisk.c:508: m = 0x7eeb86c0, last block = 11fffff, block size = 200, io align = 0 disk/efi/efidisk.c:525: opening hd0 succeeded partmap/gpt.c:90: Read a valid GPT header partmap/gpt.c:114: GPT entry 0: start=34, length=225281 partmap/gpt.c:114: GPT entry 1: start=225315, length=16384001 commands/blscfg.c:886: probing fs kern/fs.c:56: Detecting xfs... fs/xfs.c:907: Reading sb disk/efi/efidisk.c:589: reading 0x40 sectors at the sector 0x37000 from hd0 fs/xfs.c:257: Validating superblock fs/xfs.c:269: XFS v5 superblock detected fs/xfs.c:935: Reading root ino 128 fs/xfs.c:493: Reading inode (128) - 128, 0 disk/efi/efidisk.c:589: reading 0x40 sectors at the sector 0x37080 from hd0 fs/xfs.c:493: Reading inode (128) - 128, 0 commands/blscfg.c:802: scanning blsdir: /loader/entries/ fs/xfs.c:907: Reading sb fs/xfs.c:257: Validating superblock fs/xfs.c:269: XFS v5 superblock detected fs/xfs.c:935: Reading root ino 128 fs/xfs.c:493: Reading inode (128) - 128, 0 fs/xfs.c:493: Reading inode (128) - 128, 0 fs/xfs.c:493: Reading inode (128) - 128, 0 fs/xfs.c:493: Reading inode (131) - 128, 1536 fs/xfs.c:493: Reading inode (4194432) - 4096128, 0 disk/efi/efidisk.c:589: reading 0x40 sectors at the sector 0x41f080 from hd0 fs/xfs.c:493: Reading inode (8409216) - 8212608, 0 disk/efi/efidisk.c:589: reading 0x40 sectors at the sector 0x80c080 from hd0 fs/xfs.c:493: Reading inode (12583040) - 12288128, 0 disk/efi/efidisk.c:589: reading 0x40 sectors at the sector 0xbef080 from hd0 fs/xfs.c:493: Reading inode (132) - 128, 2048 fs/xfs.c:493: Reading inode (4194433) - 4096128, 512 fs/xfs.c:493: Reading inode (8409217) - 8212608, 512 fs/xfs.c:493: Reading inode (4194435) - 4096128, 1536 fs/xfs.c:493: Reading inode (9182) - 9176, 3072 disk/efi/efidisk.c:589: reading 0x40 sectors at the sector 0x39400 from hd0 fs/xfs.c:493: Reading inode (172) - 168, 2048 disk/efi/efidisk.c:589: reading 0x40 sectors at the sector 0x370c0 from hd0 fs/xfs.c:493: Reading inode (9186) - 9184, 1024 fs/xfs.c:493: Reading inode (171) - 168, 1536 fs/xfs.c:493: Reading inode (4194872) - 4096568, 0 disk/efi/efidisk.c:589: reading 0x40 sectors at the sector 0x41f240 from hd0 fs/xfs.c:493: Reading inode (9185) - 9184, 512 fs/xfs.c:493: Reading inode (4194876) - 4096568, 2048 fs/xfs.c:493: Reading inode (8409635) - 8213024, 1536 disk/efi/efidisk.c:589: reading 0x40 sectors at the sector 0x80c240 from hd0 fs/xfs.c:493: Reading inode (12583538) - 12288624, 1024 disk/efi/efidisk.c:589: reading 0x40 sectors at the sector 0xbef280 from hd0 fs/xfs.c:493: Reading inode (170) - 168, 1024 fs/xfs.c:493: Reading inode (4194877) - 4096568, 2560 commands/blscfg.c:812: read_entry returned error commands/blscfg.c:823: Entries weren't found in /loader/entries/, fallback to /boot/loader/entries/ fs/xfs.c:907: Reading sb fs/xfs.c:257: Validating superblock fs/xfs.c:269: XFS v5 superblock detected fs/xfs.c:935: Reading root ino 128 fs/xfs.c:493: Reading inode (128) - 128, 0 fs/xfs.c:493: Reading inode (128) - 128, 0 fs/xfs.c:493: Reading inode (128) - 128, 0 fs/xfs.c:493: Reading inode (131) - 128, 1536 fs/xfs.c:493: Reading inode (4194432) - 4096128, 0 fs/xfs.c:493: Reading inode (8409216) - 8212608, 0 fs/xfs.c:493: Reading inode (12583040) - 12288128, 0 fs/xfs.c:493: Reading inode (132) - 128, 2048 fs/xfs.c:493: Reading inode (4194433) - 4096128, 512 fs/xfs.c:493: Reading inode (8409217) - 8212608, 512 fs/xfs.c:493: Reading inode (4194435) - 4096128, 1536 fs/xfs.c:493: Reading inode (9182) - 9176, 3072 fs/xfs.c:493: Reading inode (172) - 168, 2048 fs/xfs.c:493: Reading inode (9186) - 9184, 1024 fs/xfs.c:493: Reading inode (171) - 168, 1536 fs/xfs.c:493: Reading inode (4194872) - 4096568, 0 disk/efi/efidisk.c:589: reading 0x40 sectors at the sector 0x462540 from hd0 disk/efi/efidisk.c:589: reading 0x40 sectors at the sector 0x462580 from hd0 fs/xfs.c:493: Reading inode (4194872) - 4096568, 0 fs/xfs.c:493: Reading inode (128) - 128, 0 fs/xfs.c:493: Reading inode (8861625) - 8665016, 512 disk/efi/efidisk.c:589: reading 0x40 sectors at the sector 0x87a7c0 from hd0 fs/xfs.c:493: Reading inode (4201010) - 4102704, 1024 disk/efi/efidisk.c:589: reading 0x40 sectors at the sector 0x420a40 from hd0 fs/xfs.c:493: Reading inode (4428460) - 4330152, 2048 disk/efi/efidisk.c:589: reading 0x40 sectors at the sector 0x4582c0 from hd0 fs/xfs.c:493: Reading inode (4428460) - 4330152, 2048 fs/xfs.c:493: Reading inode (4194872) - 4096568, 0 fs/xfs.c:493: Reading inode (9463415) - 9266800, 3584 disk/efi/efidisk.c:589: reading 0x40 sectors at the sector 0x90d680 from hd0 fs/xfs.c:493: Reading inode (9463415) - 9266800, 3584 commands/blscfg.c:452: filename: "." fs/xfs.c:493: Reading inode (4428460) - 4330152, 2048 commands/blscfg.c:452: filename: ".." fs/xfs.c:493: Reading inode (9464029) - 9267416, 2560 disk/efi/efidisk.c:589: reading 0x40 sectors at the sector 0x90d900 from hd0 commands/blscfg.c:452: filename: "7ff4fc166dc9441f98fc8885019b71e6-4.18.0-147.3.1.el8_1.x86_64.conf" kern/disk.c:196: Opening `hd0,gpt2'... disk/efi/efidisk.c:476: opening hd0 disk/efi/efidisk.c:508: m = 0x7eeb86c0, last block = 11fffff, block size = 200, io align = 0 disk/efi/efidisk.c:525: opening hd0 succeeded disk/efi/efidisk.c:589: reading 0x40 sectors at the sector 0x0 from hd0 partmap/gpt.c:90: Read a valid GPT header partmap/gpt.c:114: GPT entry 0: start=34, length=225281 partmap/gpt.c:114: GPT entry 1: start=225315, length=16384001 kern/fs.c:56: Detecting xfs... fs/xfs.c:907: Reading sb fs/xfs.c:257: Validating superblock fs/xfs.c:269: XFS v5 superblock detected fs/xfs.c:935: Reading root ino 128 fs/xfs.c:493: Reading inode (128) - 128, 0 fs/xfs.c:493: Reading inode (128) - 128, 0 fs/xfs.c:907: Reading sb fs/xfs.c:257: Validating superblock fs/xfs.c:269: XFS v5 superblock detected fs/xfs.c:935: Reading root ino 128 fs/xfs.c:493: Reading inode (128) - 128, 0 fs/xfs.c:493: Reading inode (128) - 128, 0 fs/xfs.c:493: Reading inode (128) - 128, 0 fs/xfs.c:493: Reading inode (131) - 128, 1536 fs/xfs.c:493: Reading inode (4194432) - 4096128, 0 fs/xfs.c:493: Reading inode (8409216) - 8212608, 0 fs/xfs.c:493: Reading inode (12583040) - 12288128, 0 fs/xfs.c:493: Reading inode (132) - 128, 2048 fs/xfs.c:493: Reading inode (4194433) - 4096128, 512 fs/xfs.c:493: Reading inode (8409217) - 8212608, 512 fs/xfs.c:493: Reading inode (4194435) - 4096128, 1536 fs/xfs.c:493: Reading inode (9182) - 9176, 3072 fs/xfs.c:493: Reading inode (172) - 168, 2048 fs/xfs.c:493: Reading inode (9186) - 9184, 1024 fs/xfs.c:493: Reading inode (171) - 168, 1536 fs/xfs.c:493: Reading inode (4194872) - 4096568, 0 fs/xfs.c:493: Reading inode (4194872) - 4096568, 0 fs/xfs.c:493: Reading inode (128) - 128, 0 fs/xfs.c:493: Reading inode (8861625) - 8665016, 512 fs/xfs.c:493: Reading inode (4201010) - 4102704, 1024 fs/xfs.c:493: Reading inode (4428460) - 4330152, 2048 fs/xfs.c:493: Reading inode (4428460) - 4330152, 2048 fs/xfs.c:493: Reading inode (4194872) - 4096568, 0 fs/xfs.c:493: Reading inode (9463415) - 9266800, 3584 fs/xfs.c:493: Reading inode (9463415) - 9266800, 3584 fs/xfs.c:493: Reading inode (4428460) - 4330152, 2048 fs/xfs.c:493: Reading inode (9464029) - 9267416, 2560 disk/efi/efidisk.c:589: reading 0x40 sectors at the sector 0x903c80 from hd0 commands/blscfg.c:135: new keyval at 0x7bd4c2c0:title:CentOS Linux (4.18.0-147.3.1.el8_1.x86_64) 8 (Core) commands/blscfg.c:135: new keyval at 0x7bd4c1e0:version:4.18.0-147.3.1.el8_1.x86_64 commands/blscfg.c:135: new keyval at 0x7bd4c120:linux:/boot/vmlinuz-4.18.0-147.3.1.el8_1.x86_64 commands/blscfg.c:135: new keyval at 0x7bd4c360:initrd:/boot/initramfs-4.18.0-147.3.1.el8_1.x86_64.img $tuned_initrd commands/blscfg.c:135: new keyval at 0x7bd4c320:options:$kernelopts $tuned_params commands/blscfg.c:135: new keyval at 0x7bd4be60:id:centos-20200104000231-4.18.0-147.3.1.el8_1.x86_64 commands/blscfg.c:135: new keyval at 0x7bd4bd80:grub_users:$grub_users commands/blscfg.c:135: new keyval at 0x7bd4bcc0:grub_arg:--unrestricted commands/blscfg.c:135: new keyval at 0x7bd4bf00:grub_class:kernel kern/disk.c:295: Closing `hd0'. disk/efi/efidisk.c:534: closing hd0 fs/xfs.c:493: Reading inode (9464033) - 9267424, 512 commands/blscfg.c:452: filename: "7ff4fc166dc9441f98fc8885019b71e6-0-rescue.conf" kern/disk.c:196: Opening `hd0,gpt2'... disk/efi/efidisk.c:476: opening hd0 disk/efi/efidisk.c:508: m = 0x7eeb86c0, last block = 11fffff, block size = 200, io align = 0 disk/efi/efidisk.c:525: opening hd0 succeeded partmap/gpt.c:90: Read a valid GPT header partmap/gpt.c:114: GPT entry 0: start=34, length=225281 partmap/gpt.c:114: GPT entry 1: start=225315, length=16384001 kern/fs.c:56: Detecting xfs... fs/xfs.c:907: Reading sb fs/xfs.c:257: Validating superblock fs/xfs.c:269: XFS v5 superblock detected fs/xfs.c:935: Reading root ino 128 fs/xfs.c:493: Reading inode (128) - 128, 0 fs/xfs.c:493: Reading inode (128) - 128, 0 fs/xfs.c:907: Reading sb fs/xfs.c:257: Validating superblock fs/xfs.c:269: XFS v5 superblock detected fs/xfs.c:935: Reading root ino 128 fs/xfs.c:493: Reading inode (128) - 128, 0 fs/xfs.c:493: Reading inode (128) - 128, 0 fs/xfs.c:493: Reading inode (128) - 128, 0 fs/xfs.c:493: Reading inode (131) - 128, 1536 fs/xfs.c:493: Reading inode (4194432) - 4096128, 0 fs/xfs.c:493: Reading inode (8409216) - 8212608, 0 fs/xfs.c:493: Reading inode (12583040) - 12288128, 0 fs/xfs.c:493: Reading inode (132) - 128, 2048 fs/xfs.c:493: Reading inode (4194433) - 4096128, 512 fs/xfs.c:493: Reading inode (8409217) - 8212608, 512 fs/xfs.c:493: Reading inode (4194435) - 4096128, 1536 fs/xfs.c:493: Reading inode (9182) - 9176, 3072 fs/xfs.c:493: Reading inode (172) - 168, 2048 fs/xfs.c:493: Reading inode (9186) - 9184, 1024 fs/xfs.c:493: Reading inode (171) - 168, 1536 fs/xfs.c:493: Reading inode (4194872) - 4096568, 0 fs/xfs.c:493: Reading inode (4194872) - 4096568, 0 fs/xfs.c:493: Reading inode (128) - 128, 0 fs/xfs.c:493: Reading inode (8861625) - 8665016, 512 fs/xfs.c:493: Reading inode (4201010) - 4102704, 1024 fs/xfs.c:493: Reading inode (4428460) - 4330152, 2048 fs/xfs.c:493: Reading inode (4428460) - 4330152, 2048 fs/xfs.c:493: Reading inode (4194872) - 4096568, 0 fs/xfs.c:493: Reading inode (9463415) - 9266800, 3584 fs/xfs.c:493: Reading inode (9463415) - 9266800, 3584 fs/xfs.c:493: Reading inode (4428460) - 4330152, 2048 fs/xfs.c:493: Reading inode (9464029) - 9267416, 2560 fs/xfs.c:493: Reading inode (9464033) - 9267424, 512 commands/blscfg.c:135: new keyval at 0x7bd4b400:title:CentOS Linux (0-rescue-7ff4fc166dc9441f98fc8885019b71e6) 8 (Core) commands/blscfg.c:135: new keyval at 0x7bd4b460:version:0-rescue-7ff4fc166dc9441f98fc8885019b71e6 commands/blscfg.c:135: new keyval at 0x7bd4b260:linux:/vmlinuz-0-rescue-7ff4fc166dc9441f98fc8885019b71e6 commands/blscfg.c:135: new keyval at 0x7bd4b4c0:initrd:/initramfs-0-rescue-7ff4fc166dc9441f98fc8885019b71e6.img commands/blscfg.c:135: new keyval at 0x7bd4b500:options:$kernelopts commands/blscfg.c:135: new keyval at 0x7bd4b180:id:centos-20200104000231-0-rescue-7ff4fc166dc9441f98fc8885019b71e6 commands/blscfg.c:135: new keyval at 0x7bd4af40:grub_users:$grub_users commands/blscfg.c:135: new keyval at 0x7bd4ade0:grub_arg:--unrestricted commands/blscfg.c:135: new keyval at 0x7bd4b040:grub_class:kernel kern/disk.c:295: Closing `hd0'. disk/efi/efidisk.c:534: closing hd0 commands/blscfg.c:828: Sorting 2 entries commands/blscfg.c:206: vercmp comparing 0-rescue and 4.18.0 commands/blscfg.c:837: find_entry Creating 2 entries from bls commands/blscfg.c:687: create_entry got here commands/blscfg.c:726: adding menu entry for "CentOS Linux (4.18.0-147.3.1.el8_1.x86_64) 8 (Core)" with id "7ff4fc166dc9441f98fc8885019b71e6-4.18.0-147.3.1.el8_1.x86_64" commands/blscfg.c:748: adding initrd /boot/initramfs-4.18.0-147.3.1.el8_1.x86_64.img $tuned_initrd commands/menuentry.c:152: id:"7ff4fc166dc9441f98fc8885019b71e6-4.18.0-147.3.1.el8_1.x86_64" commands/menuentry.c:153: title:"CentOS Linux (4.18.0-147.3.1.el8_1.x86_64) 8 (Core)" commands/menuentry.c:157: menu_id:"7ff4fc166dc9441f98fc8885019b71e6-4.18.0-147.3.1.el8_1.x86_64" commands/blscfg.c:764: Added entry 2 id:"7ff4fc166dc9441f98fc8885019b71e6-4.18.0-147.3.1.el8_1.x86_64" commands/blscfg.c:687: create_entry got here commands/blscfg.c:726: adding menu entry for "CentOS Linux (0-rescue-7ff4fc166dc9441f98fc8885019b71e6) 8 (Core)" with id "7ff4fc166dc9441f98fc8885019b71e6-0-rescue" commands/blscfg.c:748: adding initrd /initramfs-0-rescue-7ff4fc166dc9441f98fc8885019b71e6.img commands/menuentry.c:152: id:"7ff4fc166dc9441f98fc8885019b71e6-0-rescue" commands/menuentry.c:153: title:"CentOS Linux (0-rescue-7ff4fc166dc9441f98fc8885019b71e6) 8 (Core)" commands/menuentry.c:157: menu_id:"7ff4fc166dc9441f98fc8885019b71e6-0-rescue" commands/blscfg.c:764: Added entry 3 id:"7ff4fc166dc9441f98fc8885019b71e6-0-rescue" kern/disk.c:295: Closing `hd0'. disk/efi/efidisk.c:534: closing hd0 script/script.c:65: free 0x7bd1d180 script/script.c:65: free 0x7bd1d1c0 script/script.c:65: free 0x7bd1d480 script/script.c:65: free 0x7bd1d200 script/script.c:65: free 0x7bd1d260 script/script.c:65: free 0x7bd1d2a0 script/script.c:65: free 0x7bd1d300 script/script.c:65: free 0x7bd1d360 script/script.c:65: free 0x7bd1d3a0 In the second test, the value of $kernelopts is not expanded in its content. Please note that removing the entry $tuned_params in the following line of the /boot/loader/entries/{uuid}{kernel-version}.conf file fixes the issue : options $kernelopts $tuned_params Kind regards, ...Louis | ||||
Steps To Reproduce | Boot a UEFI enabled QCOW2 image which has the following grub2 package installed : grub2-tools-extra-2.02-78.el8.x86_64 grub2-pc-modules-2.02-78.el8.noarch grub2-efi-x64-modules-2.02-78.el8.noarch grubby-8.40-37.el8.x86_64 grub2-tools-minimal-2.02-78.el8.x86_64 grub2-tools-2.02-78.el8.x86_64 grub2-pc-2.02-78.el8.x86_64 grub2-common-2.02-78.el8.noarch grub2-efi-x64-2.02-78.el8.x86_64 with the following QEMU command : qemu-system-x86_64 -enable-kvm \ -name uefiboot \ -display none \ -monitor none \ -nodefaults \ -nographic \ -m 2048M \ -smp 2 \ -cpu host \ -serial mon:stdio \ -netdev user,id=user.0 -device e1000,netdev=user.0 \ -drive if=pflash,format=raw,readonly,file=/root/image-centos-8/OVMF_CODE.fd \ -drive if=pflash,format=raw,file=/root/OVMF_VARS.fd \ -drive file=/root/centos-8.x86_64.qcow2.uefi,if=virtio,id=disk0 The image will not boot and the boot entry for CentOS 8 will be : load_video set gfx_payload=keep insmod gzio linux ($root)/boot/vmlinuz-4.18.0-147.3.1.el8_1.x86_64 initrd ($root)/boot/initramfs-4.18.0-147.3.1.el8_1.x86_64.img $tuned_initrd | ||||
Tags | grub2, UEFI | ||||