bugGNU GRUB - Bugs: bug #44031, 30_os-prober generates bugged...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #44031: 30_os-prober generates bugged flood of submenu entries

Submitter:  Matthias <nxxy>
Submitted:  Sat 17 Jan 2015 07:57:11 PM UTC
   
 
Category:  Configuration Severity:  Major
Priority:  5 - Normal Item Group:  Software Error
Status:  Invalid Privacy:  Public
Assigned to:  None Originator Name:  Matthias
Open/Closed:  Closed Release:  2.00
Release:  Reproducibility:  Every Time
Planned Release:  None

Sun 18 Jan 2015 06:31:08 AM UTC, comment #1: 

grub is simply using whatever is returned by os-prober. os-prober is not part of grub. You need to report it to os-prober maintainers.

I think part of problem may be non-English locale, where os-prober fails to detect that entry was added by os-prober. I added additional check for menuentry id in openSUSE like

Index: os-prober-1.61/linux-boot-probes/mounted/common/40grub2

- elif echo "$title" | grep -q '(on /dev/[^)]*)$'; then
+ elif echo "$title" | grep -q '(on /dev/[^)]*)$' || echo "$id" | grep -q "^\([\"']\|\)osprober-"; then
  log "Skipping entry '$title':"
- log "appears to be an automatic reference taken from another menu.lst"
+ log "appears to be an automatic reference taken from another grub.cfg"

Try if this will help. It is part of https://build.opensuse.org/package/view_file/Base:System/os-prober/os-prober-1.49-fix-grub2.cfg-parsing.patch?expand=1

Andrei Borzenkov <arvidjaar>
Group Member
Sat 17 Jan 2015 07:57:11 PM UTC, original submission:  

I am running grub2.x86_64 1:2.00-27 on Fedora 19.

30_os-prober generates a flood of submenu entries like so:

in grub.cfg:
[...]
### BEGIN /etc/grub.d/30_os-prober ###
[...]
menuentry 'Fedora release 19 (Schrödinger’s Cat) (auf /dev/sdc2)' [...] {[...]}
submenu 'Erweiterte Optionen für Fedora release 19 (Schrödinger’s Cat) (auf /dev/sdc2)' [...] {
menuentry 'Fedora (auf /dev/sdc2)' [...] {[...]}
menuentry 'Fedora, mit Linux 3.14.23-100.fc19.x86_64 (auf /dev/sdc2)' [...] {[...]}
menuentry 'Fedora, mit Linux 3.14.23-100.fc19.x86_64 (Wiederherstellungsmodus) (auf /dev/sdc2)' [...] {[...]}
menuentry 'Fedora, mit Linux 3.14.17-100.fc19.x86_64 (auf /dev/sdc2)' [...] {[...]}
menuentry 'Fedora, mit Linux 3.14.17-100.fc19.x86_64 (Wiederherstellungsmodus) (auf /dev/sdc2)' [...] {[...]}
menuentry 'Fedora, mit Linux 3.14.15-100.fc19.x86_64 (auf /dev/sdc2)' [...] {[...]}
menuentry 'Fedora, mit Linux 3.14.15-100.fc19.x86_64 (Wiederherstellungsmodus) (auf /dev/sdc2)' [...] {[...]}
menuentry 'Fedora, mit Linux 0-rescue-9e3d4b6532ff41e1ab40d6b4e5609907 (auf /dev/sdc2)' [...] {[...]}
menuentry 'Fedora, mit Linux 0-rescue-9e3d4b6532ff41e1ab40d6b4e5609907 (Wiederherstellungsmodus) (auf /dev/sdc2)' [...] {[...]}
menuentry 'Fedora (auf /dev/sda1) (auf /dev/sdc2)' [...] {[...]}
menuentry 'Fedora, mit Linux 3.14.23-100.fc19.x86_64 (auf /dev/sda1) (auf /dev/sdc2)' [...] {[...]}
[...]
menuentry 'Fedora 19 Rescue 9e3d4b6532ff41e1ab40d6b4e5609907 (3.13.11-100.fc19.x86_64) (auf /dev/sda1) (auf /dev/sdb2) (auf /dev/sda1) (auf /dev/sdc2) (auf /dev/sdc2) (auf /dev/sdc2) (auf /dev/sdb12) (auf /dev/sdc2) (auf /dev/sdb12) (auf /dev/sdc2)' [...] {[...]}
}
### END /etc/grub.d/30_os-prober ###
[...]

As can be seen by the muliple "/dev/..." in one menuentry titel, something is working every wrong here.

My grub.cfg is 2.3 MiB big! It takes an horendous time on bootup to load the file. I attached the full file.

Matthias <nxxy>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #32858:  grub.cfg.tar.gz added by nxxy (39KiB - application/x-gzip)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by arvidjaar (Posted a comment)
  • -email is unavailable- added by nxxy (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-01-18 arvidjaar StatusNone Invalid
        Open/ClosedOpen Closed
    2015-01-17 nxxy Attached File- Added grub.cfg.tar.gz, #32858

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code