Remove implied initscripts dependency

debian/grub-common.init: Don't source /lib/init/vars.sh, we don't depend
on initscripts (and don't want to). There is no reason why we would not
use the LSB log_action_msg in non-verbose (default) mode, most other
packages use it unconditionally (closes: #824875, LP: #1584134).
This commit is contained in:
Martin Pitt 2016-05-23 08:51:34 +01:00 committed by Colin Watson
parent 0000dcaa61
commit 37dba6c86d
2 changed files with 8 additions and 5 deletions

6
debian/changelog vendored
View File

@ -3,6 +3,12 @@ grub2 (2.02~beta2-37) UNRELEASED; urgency=medium
[ Debconf translations ]
* [ja] Japanese (Takuma Yamada; closes: #815203, #817084).
[ Martin Pitt ]
* debian/grub-common.init: Don't source /lib/init/vars.sh, we don't depend
on initscripts (and don't want to). There is no reason why we would not
use the LSB log_action_msg in non-verbose (default) mode, most other
packages use it unconditionally (closes: #824875, LP: #1584134).
-- Colin Watson <cjwatson@debian.org> Sat, 20 Feb 2016 02:10:39 +0000
grub2 (2.02~beta2-36) unstable; urgency=medium

View File

@ -13,20 +13,17 @@
which grub-editenv >/dev/null 2>&1 || exit 0
# Load the VERBOSE setting and other rcS variables
. /lib/init/vars.sh
# Define LSB log_* functions.
# Depend on lsb-base (>= 3.0-6) to ensure that this file is present.
. /lib/lsb/init-functions
case $1 in
start|restart|force-reload)
[ "$VERBOSE" != no ] && log_action_msg "Recording successful boot for GRUB"
log_action_msg "Recording successful boot for GRUB"
[ -s /boot/grub/grubenv ] || rm -f /boot/grub/grubenv
mkdir -p /boot/grub
grub-editenv /boot/grub/grubenv unset recordfail
[ "$VERBOSE" != no ] && log_end_msg $?
log_end_msg $?
;;
stop)
;;