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
This commit is contained in:
Raphaël Hertzog 2019-11-07 09:47:11 +01:00
parent dd596eac9f
commit 80b36e12f4
2 changed files with 9 additions and 2 deletions

View File

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

View File

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