[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #47681] 30_os-prober doesn't handle multiple initrd paths
From: |
General Chaos |
Subject: |
[bug #47681] 30_os-prober doesn't handle multiple initrd paths |
Date: |
Tue, 12 Apr 2016 22:28:53 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:45.0) Gecko/20100101 Firefox/45.0 |
URL:
<http://savannah.gnu.org/bugs/?47681>
Summary: 30_os-prober doesn't handle multiple initrd paths
Project: GNU GRUB
Submitted by: general_chaos
Submitted on: Tue 12 Apr 2016 10:28:52 PM GMT
Category: None
Severity: Major
Priority: 5 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release:
Release: Git master
Reproducibility: Every Time
Planned Release: None
_______________________________________________________
Details:
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:
http://git.savannah.gnu.org/cgit/grub.git/tree/util/grub.d/30_os-prober.in
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.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?47681>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [bug #47681] 30_os-prober doesn't handle multiple initrd paths,
General Chaos <=