30_os-prober: Properly handle multiple initrd paths
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.
Signed-off-by Peter Levine <[email protected]>
Reviewed-by Daniel Kiper <[email protected]>
---
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
@@ -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