mirror of
https://git.proxmox.com/git/grub2
synced 2025-07-27 06:30:35 +00:00
switching from symlink to conffile requires a preinst snippet
This commit is contained in:
parent
4c2343ac7d
commit
1ad09b1c77
15
debian/preinst.in
vendored
Normal file
15
debian/preinst.in
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
case "$1" in
|
||||
install|upgrade)
|
||||
if dpkg --compare-versions "$2" lt 1.98+20100804-2 && \
|
||||
test -h /etc/kernel/postrm.d/zz-update-grub; then
|
||||
rm -f /etc/kernel/postrm.d/zz-update-grub
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
#DEBHELPER#
|
||||
|
||||
exit 0
|
2
debian/rules
vendored
2
debian/rules
vendored
@ -32,7 +32,7 @@ confflags = CC=$(CC) TARGET_CC=$(CC) --enable-grub-mkfont --disable-grub-fstest
|
||||
# autogen.sh runs util/import_gcry.py after autoconf et al, so
|
||||
# conf/gcry.rmk's timestamp will be later and we need to disregard it.
|
||||
AUTOGEN_FILES = configure $(filter-out conf/gcry.mk,$(wildcard conf/*.mk)) debian/grub-extras/*/conf/*.mk
|
||||
AUTOGEN_DEB_FILES = examples manpages config templates postinst postrm dirs install
|
||||
AUTOGEN_DEB_FILES = examples manpages config templates preinst postinst postrm dirs install
|
||||
|
||||
$(AUTOGEN_FILES): autogen.sh configure.ac $(filter-out conf/gcry.rmk,$(wildcard conf/*.rmk)) debian/grub-extras/*/conf/*.rmk
|
||||
sed -i configure.ac -e "s/^AC_INIT.*/AC_INIT(\[GRUB\],\[$(deb_version)\],\[bug-grub@gnu.org\])/"
|
||||
|
Loading…
Reference in New Issue
Block a user