All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] 30_os-prober: Properly handle multiple initrd paths
@ 2021-12-22  4:47 Peter Levine
  2022-02-15 22:45 ` P Levine
  2022-02-22 17:09 ` Daniel Kiper
  0 siblings, 2 replies; 3+ messages in thread
From: Peter Levine @ 2021-12-22  4:47 UTC (permalink / raw)
  To: grub-devel; +Cc: Peter Levine

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.

Closes 47681

Signed-off-by: Peter Levine <plevine457@gmail.com>
---
 util/grub.d/30_os-prober.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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
-- 
2.34.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] 30_os-prober: Properly handle multiple initrd paths
  2021-12-22  4:47 [PATCH] 30_os-prober: Properly handle multiple initrd paths Peter Levine
@ 2022-02-15 22:45 ` P Levine
  2022-02-22 17:09 ` Daniel Kiper
  1 sibling, 0 replies; 3+ messages in thread
From: P Levine @ 2022-02-15 22:45 UTC (permalink / raw)
  To: grub-devel

[-- Attachment #1: Type: text/plain, Size: 1172 bytes --]

On Tue, Dec 21, 2021 at 11:47 PM Peter Levine <plevine457@gmail.com> wrote:

> 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.
>
> Closes 47681
>
> Signed-off-by: Peter Levine <plevine457@gmail.com>
> ---
>  util/grub.d/30_os-prober.in | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> 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
> --
> 2.34.1
>
>
Any feedback?

[-- Attachment #2: Type: text/html, Size: 2417 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] 30_os-prober: Properly handle multiple initrd paths
  2021-12-22  4:47 [PATCH] 30_os-prober: Properly handle multiple initrd paths Peter Levine
  2022-02-15 22:45 ` P Levine
@ 2022-02-22 17:09 ` Daniel Kiper
  1 sibling, 0 replies; 3+ messages in thread
From: Daniel Kiper @ 2022-02-22 17:09 UTC (permalink / raw)
  To: Peter Levine; +Cc: grub-devel

On Tue, Dec 21, 2021 at 11:47:45PM -0500, Peter Levine wrote:
> 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.
>
> Closes 47681

This looks like a random number. Could you send me link to the bug?

And it should be:

Fixes: ...

... instead of Closes...

> Signed-off-by: Peter Levine <plevine457@gmail.com>

Otherwise Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>...

Daniel


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-02-22 17:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-22  4:47 [PATCH] 30_os-prober: Properly handle multiple initrd paths Peter Levine
2022-02-15 22:45 ` P Levine
2022-02-22 17:09 ` Daniel Kiper

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.