bugGNU GRUB - Bugs: bug #47681, 30_os-prober doesn't handle...


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

bug #47681: 30_os-prober doesn't handle multiple initrd paths

Submitted by:  General Chaos <general_chaos>
Submitted on:  Tue 12 Apr 2016 10:28:52 PM UTC  
Category: ConfigurationSeverity: Major
Priority: 5 - NormalItem Group: None
Status: NonePrivacy: Public
Assigned to: NoneOriginator Name: 
Open/Closed: OpenRelease: 
Release: Git masterReproducibility: Every Time
Planned Release: None

Wed 13 Apr 2016 06:02:48 AM UTC, comment #2:

Please update this bug report when os-prober is fixed. Suggested solution is OK.

Andrei Borzenkov <arvidjaar>
Project Member
Tue 12 Apr 2016 11:23:09 PM UTC, comment #1:

Debian bug report for linux-boot-prober (in package os-prober): https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=820838

General Chaos <general_chaos>
Tue 12 Apr 2016 10:28:52 PM UTC, original submission:

Some distros, e.g. Manjaro, use multiple paths on the initrd line.
Including only the first results in a kernel panic rather than booting.

30_os-prober fails to account for the possibility of multiple initrd paths: if linux-boot-prober gives it multiple paths, separated by spaces, 30_os-prober will remove the spaces and replace them with carets ("^").

The whole system is a hack, but a simple fix is to replace the carets with spaces again, as it does for some of the other fields:

line 210:
- LINITRD="`echo ${LINUX} | cut -d ':' -f 5`"
+ LINITRD="`echo ${LINUX} | cut -d ':' -f 5 | tr '^' ' '`"

NB: linux-boot-prober currently outputs only the first path on the initrd line, even when multiple paths are present. This bug is being reported separately to the maintainers of os-prober (debian-boot). The simple fix suggested above assumes that their solution to this bug will be to space-separate multiple paths.

General Chaos <general_chaos>


No files currently attached


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 general_chaos (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):



    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 13 Apr 2016 06:02:48 AM UTCarvidjaarCategoryNone=>Configuration

    Back to the top

    Powered by Savane 3.1-cleanup1