]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
util/grub.d/00_header.in: Quote background image pathname in output
authorPascal Hambourg <pascal@plouf.fr.eu.org>
Sun, 19 May 2024 15:50:10 +0000 (17:50 +0200)
committerDaniel Kiper <daniel.kiper@oracle.com>
Thu, 23 May 2024 12:57:37 +0000 (14:57 +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>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
util/grub.d/00_header.in

index 6a316a5ba77ef892bf0f4d1ef20758e0a1628604..f86b69bad76d239e382fe04b4ff4dc4668880007 100644 (file)
@@ -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