Remove duplicated grub background file

This commit is contained in:
Daniel Ruiz de Alegría 2022-01-11 10:51:37 +01:00
parent bd4c16c234
commit 6c51c02511
No known key found for this signature in database
GPG Key ID: 59667A77E8BFCB6C
3 changed files with 2 additions and 5 deletions

View File

@ -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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 309 KiB

View File

@ -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"