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:  Configuration Severity:  Major
Priority:  5 - Normal Item Group:  None
Status:  None Privacy:  Public
Assigned to:  None Originator Name: 
Open/Closed:  Open Release: 
Release:  Git master Reproducibility:  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
  • -email is unavailable- added by arvidjaar (Posted a comment)
  • -email is unavailable- added by general_chaos (Submitted the item)

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

    Only logged-in users can vote.




    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-04-13 arvidjaar CategoryNone => Configuration

    Back to the top

    Powered by Savane 3.3