From de1fc479c9630a98e26560eaa0dab68d58a8b032 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Hertzog?= Date: Thu, 14 Nov 2019 08:44:37 +0100 Subject: [PATCH] Use relative path for the background picture in the grub theme The absolute path was breaking grub on systems with btrfs subvolumes. --- debian/kali-themes.postinst | 2 -- share/grub/themes/kali/theme.txt | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/debian/kali-themes.postinst b/debian/kali-themes.postinst index 4c645700..308f0320 100644 --- a/debian/kali-themes.postinst +++ b/debian/kali-themes.postinst @@ -51,8 +51,6 @@ if [ "$1" = "configure" ]; then # Copy grub theme to /boot mkdir -p /boot/grub/themes/kali cp -r /usr/share/grub/themes/kali/* /boot/grub/themes/kali/ - sed -i -e 's|/usr/share/grub/themes/|/boot/grub/themes/|g' \ - /boot/grub/themes/kali/theme.txt # Rebuild the grub configuration with our config changes if which update-grub >/dev/null; then update-grub || true diff --git a/share/grub/themes/kali/theme.txt b/share/grub/themes/kali/theme.txt index a63b49f1..3acefeb1 100644 --- a/share/grub/themes/kali/theme.txt +++ b/share/grub/themes/kali/theme.txt @@ -1,7 +1,7 @@ # Global Property title-text: "" -desktop-image: "/usr/share/grub/themes/kali/grub-16x9.png" +desktop-image: "grub-16x9.png" desktop-color: "#2f5595" terminal-font: "Unifont Regular 16" terminal-left: "0"