Skip to contentSkip to conversation

30_os-prober: Properly handle multiple initrd paths

PATCH New Peter Levine 1 participant 1 message Mar 3, 2022

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 30_os-prober: Properly handle multiple initrd paths

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.

---

Changes in v2
- Add Fixes tag with URL.
- Add Reviewed-by tag from Daniel Kiper.
Changes in v3
- Fix quote completion error.

 util/grub.d/30_os-prober.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
util/grub.d/30_os-prober.in +1 -1
index 5984e92d2..daa603778 100644
@@ -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
Signature · 1 line
2.35.1