mirror of
https://git.proxmox.com/git/grub2
synced 2025-08-16 03:18:05 +00:00
args add grub-pc.preinst
This commit is contained in:
parent
7a2d7297de
commit
81551e188b
26
debian/grub-pc.preinst
vendored
Normal file
26
debian/grub-pc.preinst
vendored
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
#!/bin/bash -e
|
||||||
|
|
||||||
|
case "$1" in
|
||||||
|
install|upgrade)
|
||||||
|
|
||||||
|
if grep -q "/sbin/update-grub" /etc/kernel-img.conf ; then
|
||||||
|
echo -e "\n/etc/kernel-img.conf still contains /sbin/update-grub in the hooks." >&2
|
||||||
|
echo "You need to change them to just update-grub without any path prefixed." >&2
|
||||||
|
echo -e "After you fixed it, run apt-get or aptitude again.\n" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
abort-upgrade)
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "postinst called with unknown argument \`$1'" >&2
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
# dh_installdeb will replace this with shell code automatically
|
||||||
|
# generated by other debhelper scripts.
|
||||||
|
|
||||||
|
#DEBHELPER#
|
||||||
|
|
||||||
|
exit 0
|
Loading…
Reference in New Issue
Block a user