Bug#842315: Misdetects systemd with merged-usr
Michael Biebl
biebl at debian.org
Fri Oct 28 02:36:31 UTC 2016
Package: grub-common
Version: 2.02~beta3-1
Severity: important
File: /etc/grub.d/10_linux
User: md at linux.it
Usertags: usrmerge
debootstrap switched the default to have a merged-/usr setup.
This means, /lib/ will be a symlink to /usr/lib for new installations.
10_linux and 20_linux_xen have
SUPPORTED_INITS="sysvinit:/lib/sysvinit/init
systemd:/lib/systemd/systemd upstart:/sbin/upstart
and then it checks if /sbin/init points to any of those binaries.
On a merged-/usr system with systemd as default,
readlink -f /sbin/init resolves to /usr/lib/systemd/systemd
As a result, grub thinks that systemd is not the default and generates a
separate boot entry for systemd. This is unnecessary and a bit
confusing.
Regards,
Michael
P.S:
While looking at 10_linux, I noticed /lib/sysvinit/init (sysvinit) and
/sbin/upstart (upstart) which have been removed in stretch. But
I guess it's fine to keep support for one more release cycle for those
who upgrade from jessie.
-- System Information:
Debian Release: stretch/sid
APT prefers unstable
APT policy: (500, 'unstable'), (200, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.7.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages grub-common depends on:
ii gettext-base 0.19.8.1-1
ii libc6 2.24-5
ii libdevmapper1.02.1 2:1.02.133-1
ii libfreetype6 2.6.3-3+b1
ii libfuse2 2.9.7-1
ii liblzma5 5.2.2-1.2
Versions of packages grub-common recommends:
ii os-prober 1.71
Versions of packages grub-common suggests:
ii console-setup 1.152
ii desktop-base 8.0.2
pn grub-emu <none>
pn multiboot-doc <none>
pn xorriso <none>
-- Configuration Files:
/etc/grub.d/40_custom changed [not included]
-- no debconf information
More information about the Pkg-grub-devel
mailing list