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

Submitted by:  Matthias <nxxy>
Submitted on:  Sat 17 Jan 2015 07:57:11 PM UTC  
 
Category: ConfigurationSeverity: Major
Priority: 5 - NormalItem Group: Software Error
Status: InvalidPrivacy: Public
Assigned to: NoneOriginator Name: Matthias
Open/Closed: ClosedRelease: 
Release: 2.00Reproducibility: 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>
Project 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>

 

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
  • -unavailable- added by arvidjaar (Posted a comment)
  • -unavailable- added by nxxy (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 18 Jan 2015 06:31:08 AM UTCarvidjaarStatusNone=>Invalid
      Open/ClosedOpen=>Closed
    Sat 17 Jan 2015 07:57:11 PM UTCnxxyAttached File-=>Added grub.cfg.tar.gz, #32858

    Back to the top


    Powered by Savane 3.1-cleanup1