Bug#866643: jessie-pu: package init-select/1.20140921+deb8u1
Package: release.debian.org
Severity: normal
Tags: jessie
User: release.debian.org@packages.debian.org
Usertags: pu
init-select contains a grub config snippet that unconditionally runs a
command, which will cause failures (in update-grub and friends) if
init-select was removed but not purged.
This was noticed on jessie->stretch upgrades of coreboot where
init-select was installed in jessie (but gets removed during the upgrade
to stretch).
I verified the bug and fix in a jessie chroot with
* apt-get install init-select
* apt-get remove init-select
* apt-get install grub-coreboot
init-select is not in stretch and has now been removed from sid as well.
Andreas
diff -Nru init-select-1.20140921/debian/changelog init-select-1.20140921+deb8u1/debian/changelog
--- init-select-1.20140921/debian/changelog 2014-09-21 04:50:18.000000000 +0200
+++ init-select-1.20140921+deb8u1/debian/changelog 2017-06-30 17:31:16.000000000 +0200
@@ -1,3 +1,12 @@
+init-select (1.20140921+deb8u1) jessie; urgency=medium
+
+ * Non-maintainer upload.
+ * /etc/default/grub.d/init-select.cfg: Check for
+ /usr/lib/init-select/get-init before calling it.
+ The package may have been removed, but not purged. (Closes: #858528)
+
+ -- Andreas Beckmann <anbe@debian.org> Fri, 30 Jun 2017 17:31:16 +0200
+
init-select (1.20140921) unstable; urgency=medium
* Default to systemd.
diff -Nru init-select-1.20140921/init-select.cfg init-select-1.20140921+deb8u1/init-select.cfg
--- init-select-1.20140921/init-select.cfg 2014-09-21 04:37:11.000000000 +0200
+++ init-select-1.20140921+deb8u1/init-select.cfg 2017-06-30 17:19:30.000000000 +0200
@@ -1 +1 @@
-GRUB_CMDLINE_LINUX_DEFAULT="$GRUB_CMDLINE_LINUX_DEFAULT $(/usr/lib/init-select/get-init)"
+GRUB_CMDLINE_LINUX_DEFAULT="$GRUB_CMDLINE_LINUX_DEFAULT $(if [ -x /usr/lib/init-select/get-init ]; then /usr/lib/init-select/get-init; fi)"
Reply to: