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:
parent
dd596eac9f
commit
80b36e12f4
9
debian/kali-themes.postinst
vendored
9
debian/kali-themes.postinst
vendored
@ -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#
|
||||
|
||||
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user