Skip to contentSkip to conversation

debian/grub.d/05_debian_theme: quote background image pathname in output

PATCH Superseded Pascal Hambourg 2 participants 3 messages May 19, 2024 – May 22, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 debian/grub.d/05_debian_theme: quote background image pathname in output

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

---
 util/grub.d/00_header.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
util/grub.d/00_header.in +1 -1
index 6a316a5ba..f86b69bad 100644
@@ -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
Signature · 7 lines
2.39.2


_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel
#1 lore raw

PATCH v2 1/1 util/grub.d/00_header.in: quote background image pathname in output

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

---
v2: Correct subject

 util/grub.d/00_header.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
util/grub.d/00_header.in +1 -1
index 6a316a5ba..f86b69bad 100644
@@ -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
Signature · 7 lines
2.39.2


_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel
Reviewed-by on v2 1/1
#2 lore raw

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

Quoted 4 lines · Pascal Hambourg

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

Daniel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel