aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Levine <plevine457@gmail.com>2022-02-22 23:35:02 -0500
committerDaniel Kiper <daniel.kiper@oracle.com>2022-03-07 15:39:25 +0100
commit000b5cd04fd228f9741f5dca0491636bc0b89eb8 (patch)
tree06729bcc8722a06cc708b9cf09568ce48255424f
parent666c6f8adbe91249e49809db1014aa90a12703f5 (diff)
downloadgrub-000b5cd04fd228f9741f5dca0491636bc0b89eb8.tar.gz
templates: Properly handle multiple initrd paths in 30_os-prober
os-prober now effectively handles multiple paths passed to initrd, but grub-mkconfig still truncates off any subsequent space-delimited paths. Support proper parsing of space-delimited initrd paths passed from os-prober for distributions, like Manjaro, that require it. Fixes: https://savannah.gnu.org/bugs/?47681 Signed-off-by: Peter Levine <plevine457@gmail.com> Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
-rw-r--r--util/grub.d/30_os-prober.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/grub.d/30_os-prober.in b/util/grub.d/30_os-prober.in
index 5984e92d2..daa603778 100644
--- a/util/grub.d/30_os-prober.in
+++ b/util/grub.d/30_os-prober.in
@@ -210,7 +210,7 @@ EOF
LBOOT="`echo ${LINUX} | cut -d ':' -f 2`"
LLABEL="`echo ${LINUX} | cut -d ':' -f 3 | tr '^' ' '`"
LKERNEL="`echo ${LINUX} | cut -d ':' -f 4`"
- LINITRD="`echo ${LINUX} | cut -d ':' -f 5`"
+ LINITRD="`echo ${LINUX} | cut -d ':' -f 5 | tr '^' ' '`"
LPARAMS="`echo ${LINUX} | cut -d ':' -f 6- | tr '^' ' '`"
if [ -z "${LLABEL}" ] ; then