parent
2be92c7e69
commit
45012e2d47
4
debian/kali-desktop-base.postinst
vendored
4
debian/kali-desktop-base.postinst
vendored
@ -87,7 +87,7 @@ if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-remov
|
||||
# Some people use the *-bin packages without using GRUB as bootloader
|
||||
# (see #851893 for more context).
|
||||
if dpkg-query --list "grub-*" | grep -v "^... grub\(-common\|-emu\|[^[:space:]]*\(-bin\|-doc\)\)" | grep -q "^[ih][HUFWti] " \
|
||||
&& which update-grub > /dev/null ; then
|
||||
&& command -v update-grub > /dev/null ; then
|
||||
# Ensure the background image file has actually been written to disc
|
||||
# before updating.
|
||||
sync
|
||||
@ -98,7 +98,7 @@ if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-remov
|
||||
update-grub || echo "Updating grub failed, report success anyway!"
|
||||
fi
|
||||
|
||||
if which update-initramfs > /dev/null; then
|
||||
if command -v update-initramfs > /dev/null; then
|
||||
update-initramfs -u
|
||||
fi
|
||||
|
||||
|
||||
4
debian/kali-themes.postinst
vendored
4
debian/kali-themes.postinst
vendored
@ -160,11 +160,11 @@ if [ "$1" = "configure" ]; then
|
||||
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
|
||||
if command -v update-grub >/dev/null; then
|
||||
update-grub || true
|
||||
fi
|
||||
# Rebuild the initrd for plymouth
|
||||
if which update-initramfs >/dev/null; then
|
||||
if command -v update-initramfs >/dev/null; then
|
||||
update-initramfs -u
|
||||
fi
|
||||
fi
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user