diff --git a/debian/kali-themes.postinst b/debian/kali-themes.postinst index e80b58e0..42314b6e 100644 --- a/debian/kali-themes.postinst +++ b/debian/kali-themes.postinst @@ -129,8 +129,6 @@ if [ "$1" = "configure" ]; then fi # Copy grub theme to /boot mkdir -p /boot/grub/themes/kali - # Remove old symlink created by postinst in 2020.3.0 - rm -f /boot/grub/themes/kali/background.png cp -r /usr/share/grub/themes/kali/* /boot/grub/themes/kali/ # Set grub theme background # Use background with 16x9 aspect ratio for efi installations detected @@ -138,10 +136,9 @@ if [ "$1" = "configure" ]; then # necessary account for grub being the active bootloader). if dpkg-query --list grub-efi* | grep -v "^... grub-efi[^[:space:]]*-bin" | grep -q "^[ih][HUFWti] " ; then echo "grub-efi* packages found, using 16/9 as default grub background ratio" - cp /boot/grub/themes/kali/grub-16x9.png /boot/grub/themes/kali/background.png else echo "No grub-efi* package found, using 4/3 as default grub background ratio" - cp /boot/grub/themes/kali/grub-4x3.png /boot/grub/themes/kali/background.png + sed -i 's/grub-16x9\.png/grub-4x3.png/' /boot/grub/themes/kali/theme.txt fi # Rebuild the grub configuration with our config changes if which update-grub >/dev/null; then diff --git a/share/grub/themes/kali/background.png b/share/grub/themes/kali/background.png deleted file mode 100644 index 738fc69f..00000000 Binary files a/share/grub/themes/kali/background.png and /dev/null differ diff --git a/share/grub/themes/kali/theme.txt b/share/grub/themes/kali/theme.txt index 313d383f..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: "background.png" +desktop-image: "grub-16x9.png" desktop-color: "#2f5595" terminal-font: "Unifont Regular 16" terminal-left: "0"