grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH v2][Bugfix] util/grub.d/00_header.in: quote background image path


From: Pascal Hambourg
Subject: [PATCH v2][Bugfix] util/grub.d/00_header.in: quote background image pathname in output
Date: Sun, 19 May 2024 17:50:10 +0200

This is required if the pathname contains spaces or grub shell
metacharacters, else the generated config file check will fail.

Signed-off-by: Pascal Hambourg <pascal@plouf.fr.eu.org>
---
v2: Correct subject

 util/grub.d/00_header.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/util/grub.d/00_header.in b/util/grub.d/00_header.in
index 6a316a5ba..f86b69bad 100644
--- a/util/grub.d/00_header.in
+++ b/util/grub.d/00_header.in
@@ -275,7 +275,7 @@ EOF
        prepare_grub_to_access_device `${grub_probe} --target=device 
"$GRUB_BACKGROUND"`
        cat << EOF
 insmod $reader
-background_image -m stretch `make_system_path_relative_to_its_root 
"$GRUB_BACKGROUND"`
+background_image -m stretch "`make_system_path_relative_to_its_root 
"$GRUB_BACKGROUND"`"
 EOF
     fi
 fi
-- 
2.39.2




reply via email to

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