[Top][All Lists]

[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


                 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: Git master
         Reproducibility: Every Time
         Planned Release: None



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.


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]