From 80b36e12f49ba2cd811708c3c1ea754cd0458864 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Hertzog?= Date: Thu, 7 Nov 2019 09:47:11 +0100 Subject: [PATCH] Instead copy grub theme to /boot during postinst The goal is to not break ARM images using vfat for /boot while still providing the theme in /boot so that it can be available even when /usr/share/ is not available. Gbp-Dch: Full --- debian/kali-themes.postinst | 9 ++++++++- share/grub/themes/kali/theme.txt | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/debian/kali-themes.postinst b/debian/kali-themes.postinst index 0e4b26b6..d02ab8cc 100644 --- a/debian/kali-themes.postinst +++ b/debian/kali-themes.postinst @@ -48,8 +48,15 @@ if [ "$1" = "configure" ]; then # Install remaining new files install_all fi + # 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 - update-grub || true + if which update-grub >/dev/null; then + update-grub || true + fi fi #DEBHELPER# diff --git a/share/grub/themes/kali/theme.txt b/share/grub/themes/kali/theme.txt index 5d0bf91a..c2f6b08d 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: "/boot/grub/themes/kali/grub-16x9.png" +desktop-image: "/usr/share/grub/themes/kali/grub-16x9.png" desktop-color: "#ff0000" terminal-font: "Unifont Regular 16" terminal-left: "0"