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"