Bug#762558: init-select adds sysvinit as init system to kernel command line while systemd is there due to /etc/default/grub

Martin Steigerwald Martin at lichtvoll.de
Tue Sep 23 11:08:42 BST 2014


reassign -1 init-select
retitle -1 init-select init-select adds sysvinit as init system to kernel command line while systemd is there due to /etc/default/grub
thanks

Okay, this happens cause systemd isn´t running:

merkaba:~> grep systemd /etc/default/grub 
GRUB_CMDLINE_LINUX_DEFAULT="init=/bin/systemd resume=/dev/mapper/sata-swap"

merkaba:~> cat /proc/cmdline 
BOOT_IMAGE=/vmlinuz-3.17.0-rc6-tp520 root=/dev/mapper/sata-debian ro rootflags=subvol=debian init=/bin/systemd resume=/dev/mapper/sata-swap init=/lib/sysvinit/init
merkaba:~> ls -l /bin/systemd
lrwxrwxrwx 1 root root 20 Sep 15 18:25 /bin/systemd -> /lib/systemd/systemd
merkaba:~> ls -l /lib/systemd/systemd
-rwxr-xr-x 1 root root 1309072 Sep 15 18:25 /lib/systemd/systemd

So seems init-select messes up manual configuration.

I now did dpkg-reconfigure init-select and switched from sysvinit to systemd. Now I get:

merkaba:~> grep systemd /boot/grub/grub.cfg | head -1
        linux   /vmlinuz-3.17.0-rc6-tp520 root=/dev/mapper/sata-debian ro rootflags=subvol=debian  init=/bin/systemd resume=/dev/mapper/sata-swap 

If I switch back to sysvinit I get:

merkaba:~> grep systemd /boot/grub/grub.cfg | head -1
        linux   /vmlinuz-3.17.0-rc6-tp520 root=/dev/mapper/sata-debian ro rootflags=subvol=debian  init=/bin/systemd resume=/dev/mapper/sata-swap init=/lib/sysvinit/init


This is bugged.

init-select shouldn´t mess manual selection of init system.

But at least I know how to fix it.

Ciao,
-- 
Martin 'Helios' Steigerwald - http://www.Lichtvoll.de
GPG: 03B0 0D6C 0040 0710 4AFA  B82F 991B EAAC A599 84C7



More information about the Pkg-systemd-maintainers mailing list