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
|
# Some people use the *-bin packages without using GRUB as bootloader
|
||||||
# (see #851893 for more context).
|
# (see #851893 for more context).
|
||||||
if dpkg-query --list "grub-*" | grep -v "^... grub\(-common\|-emu\|[^[:space:]]*\(-bin\|-doc\)\)" | grep -q "^[ih][HUFWti] " \
|
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
|
# Ensure the background image file has actually been written to disc
|
||||||
# before updating.
|
# before updating.
|
||||||
sync
|
sync
|
||||||
@ -98,7 +98,7 @@ if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-remov
|
|||||||
update-grub || echo "Updating grub failed, report success anyway!"
|
update-grub || echo "Updating grub failed, report success anyway!"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if which update-initramfs > /dev/null; then
|
if command -v update-initramfs > /dev/null; then
|
||||||
update-initramfs -u
|
update-initramfs -u
|
||||||
fi
|
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
|
sed -i 's/grub-16x9\.png/grub-4x3.png/' /boot/grub/themes/kali/theme.txt
|
||||||
fi
|
fi
|
||||||
# Rebuild the grub configuration with our config changes
|
# 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
|
update-grub || true
|
||||||
fi
|
fi
|
||||||
# Rebuild the initrd for plymouth
|
# Rebuild the initrd for plymouth
|
||||||
if which update-initramfs >/dev/null; then
|
if command -v update-initramfs >/dev/null; then
|
||||||
update-initramfs -u
|
update-initramfs -u
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user