Bug 1181762 - grub2-xen ignores standard /boot/grub/grub.conf location
Summary: grub2-xen ignores standard /boot/grub/grub.conf location
Status: RESOLVED FIXED
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: Current
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Bootloader Maintainers
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-03 22:53 UTC by Luiz Angelo Daros de Luca
Modified: 2024-05-17 09:10 UTC (History)
2 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Luiz Angelo Daros de Luca 2021-02-03 22:53:40 UTC
Hello,

Although SUSE uses /boot/grub2/grub.cfg path, some distributions might use /boot/grub/grub.cfg (which seems to be the default one).

The issue is this file:
https://build.opensuse.org/package/view_file/Base:System/grub2/grub2-xen-pv-firmware.cfg?expand=1

It looks for /boot/grub2/grub.cfg or /grub2/grub.cfg but not /boot/grub/grub.cfg or /grub/grub.cfg. If you simply add those entries, it will still not work because this script is provided as a memdisk at (memdisk)/boot/grub/grub.cfg, which might match before the actual local filesystem while looking for grub.cfg.

I'm not grub expert but it looks like it should, somehow skip (memdisk) while looking for a grub.cfg file, either changing the logic or changing the memdisk grub.cfg file path.

BTW, legacy_configfile does not exists while there is legacycfg.mod but I don't know if they are the same:

grub> insmod legacy_configfile
error: ../../grub-core/fs/archelp.c:260:file
`/boot/grub/x86_64-xen/legacy_configfile.mod'
not found.
Comment 1 Benjamin Brunner 2022-07-28 12:28:33 UTC
Bulk-re-assigning to the new bootloader-maintainers@suse.de group.
Comment 3 Michael Chang 2024-02-22 05:19:46 UTC
The fix for the $subject is submitted to openSUSE:

https://build.opensuse.org/request/show/1148963

Set resolution to fixed.
Thanks a lot for the help & support.
Comment 6 Maintenance Automation 2024-03-14 08:30:01 UTC
SUSE-RU-2024:0878-1: An update that has two fixes can now be installed.

Category: recommended (important)
Bug References: 1181762, 1219248
Sources used:
Basesystem Module 15-SP5 (src): grub2-2.06-150500.29.19.1
Server Applications Module 15-SP5 (src): grub2-2.06-150500.29.19.1
openSUSE Leap 15.5 (src): grub2-2.06-150500.29.19.1
SUSE Linux Enterprise Micro 5.5 (src): grub2-2.06-150500.29.19.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.