[Pkg-sysvinit-devel] Bug#663219: systemd-sysv, sysvinit: problems rebooting when switching between systemd-sysv and sysvinit

Andreas Henriksson andreas at fatal.se
Fri Mar 9 14:53:00 UTC 2012


Package: systemd-sysv,sysvinit
Version: 43-1,2.88dsf-22
Severity: normal


==================================================

Background:

Fresh minimal install of wheezy in virtualbox via daily d-i image
Upgraded to sid
Installed systemd from experimental (43-1)

==================================================

root at debian:~# dpkg -l sysvinit systemd systemd-sysv
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version        Description
+++-==============-==============-============================================
ii  systemd        43-1           system and service manager
un  systemd-sysv   <none>         (no description available)
ii  sysvinit       2.88dsf-22     System-V-like init utilities

root at debian:~# ls -l /dev/initctl /run/initctl
ls: cannot access /dev/initctl: No such file or directory
prw------- 1 root root 0 Mar  9 15:14 /run/initctl

root at debian:~# ls -l /sys/fs/cgroup/systemd
ls: cannot access /sys/fs/cgroup/systemd: No such file or directory

root at debian:~# apt-get install -texperimental systemd-sysv
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  sysvinit
The following NEW packages will be installed:
  systemd-sysv
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
  sysvinit
0 upgraded, 1 newly installed, 1 to remove and 23 not upgraded.
Need to get 0 B/12.4 kB of archives.
After this operation, 177 kB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
 ?] Yes, do as I say!
......



root at debian:~# dpkg -l sysvinit systemd systemd-sysv
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version        Description
+++-==============-==============-============================================
ii  systemd        43-1           system and service manager
ii  systemd-sysv   43-1           system and service manager - SysV links
un  sysvinit       <none>         (no description available)
root at debian:~# ls -l /sys/fs/cgroup/systemd
ls: cannot access /sys/fs/cgroup/systemd: No such file or directory
root at debian:~# ls -l /{dev,run}/initctl
ls: cannot access /dev/initctl: No such file or directory
prw------- 1 root root 0 Mar  9 15:14 /run/initctl

root at debian:~# reboot
Failed to talk to init daemon.

<now hard reboot!>

==================================================


root at debian:~# dpkg -l sysvinit systemd systemd-sysv
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version        Description
+++-==============-==============-============================================
ii  systemd        43-1           system and service manager
ii  systemd-sysv   43-1           system and service manager - SysV links
un  sysvinit       <none>         (no description available)

root at debian:~# ls -l /sys/fs/cgroup/systemd/
total 0
-rw-r--r--  1 root root 0 Mar  9 15:29 cgroup.clone_children
--w--w--w-  1 root root 0 Mar  9 15:29 cgroup.event_control
-rw-r--r--  1 root root 0 Mar  9 15:29 cgroup.procs
-rw-r--r--  1 root root 0 Mar  9 15:29 notify_on_release
-rw-r--r--  1 root root 0 Mar  9 15:29 release_agent
drwxr-xr-x 11 root root 0 Mar  9 15:29 system
-rw-r--r--  1 root root 0 Mar  9 15:29 tasks
drwxr-xr-x  3 root root 0 Mar  9 15:30 user

root at debian:~# ls -l /{dev,run}/initctl
prw------- 1 root root  0 Mar  9 15:29 /dev/initctl
lrwxrwxrwx 1 root root 12 Mar  9 15:29 /run/initctl -> /dev/initctl

root at debian:~# reboot

<system reboots as expected!>



==================================================

root at debian:~# dpkg -l sysvinit systemd systemd-sysv
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version        Description
+++-==============-==============-============================================
ii  systemd        43-1           system and service manager
ii  systemd-sysv   43-1           system and service manager - SysV links
un  sysvinit       <none>         (no description available)
root at debian:~# ls -l /{dev,run}/initctl
prw------- 1 root root  0 Mar  9 15:32 /dev/initctl
lrwxrwxrwx 1 root root 12 Mar  9 15:32 /run/initctl -> /dev/initctl
root at debian:~# ls -l /sys/fs/cgroup/systemd/
total 0
-rw-r--r--  1 root root 0 Mar  9 15:32 cgroup.clone_children
--w--w--w-  1 root root 0 Mar  9 15:32 cgroup.event_control
-rw-r--r--  1 root root 0 Mar  9 15:32 cgroup.procs
-rw-r--r--  1 root root 0 Mar  9 15:32 notify_on_release
-rw-r--r--  1 root root 0 Mar  9 15:32 release_agent
drwxr-xr-x 11 root root 0 Mar  9 15:32 system
-rw-r--r--  1 root root 0 Mar  9 15:32 tasks
drwxr-xr-x  3 root root 0 Mar  9 15:32 user
root at debian:~#

root at debian:~# apt-get install sysvinit
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  systemd-sysv
The following NEW packages will be installed:
  sysvinit
0 upgraded, 1 newly installed, 1 to remove and 2 not upgraded.
Need to get 0 B/125 kB of archives.
After this operation, 177 kB of additional disk space will be used.
Do you want to continue [Y/n]?
(Reading database ... 33052 files and directories currently installed.)
Removing systemd-sysv ...
Processing triggers for man-db ...
Selecting previously unselected package sysvinit.
(Reading database ... 33035 files and directories currently installed.)
Unpacking sysvinit (from .../sysvinit_2.88dsf-22_i386.deb) ...
Processing triggers for man-db ...
Setting up sysvinit (2.88dsf-22) ...
sysvinit: restarting... done.
root at debian:~#

root at debian:~# reboot
shutdown: /run/initctl: No such file or directory
init: /run/initctl: No such file or directory


root at debian:~# dpkg -l sysvinit systemd systemd-sysv
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version        Description
+++-==============-==============-============================================
ii  systemd        43-1           system and service manager
un  systemd-sysv   <none>         (no description available)
ii  sysvinit       2.88dsf-22     System-V-like init utilities
root at debian:~# ls -l /sys/fs/cgroup/systemd/
total 0
-rw-r--r--  1 root root 0 Mar  9 15:32 cgroup.clone_children
--w--w--w-  1 root root 0 Mar  9 15:32 cgroup.event_control
-rw-r--r--  1 root root 0 Mar  9 15:32 cgroup.procs
-rw-r--r--  1 root root 0 Mar  9 15:32 notify_on_release
-rw-r--r--  1 root root 0 Mar  9 15:32 release_agent
drwxr-xr-x 12 root root 0 Mar  9 15:32 system
-rw-r--r--  1 root root 0 Mar  9 15:32 tasks
drwxr-xr-x  3 root root 0 Mar  9 15:32 user
root at debian:~# ls -l /{dev,run}/initctl
ls: cannot access /dev/initctl: No such file or directory
lrwxrwxrwx 1 root root 12 Mar  9 15:32 /run/initctl -> /dev/initctl
root at debian:~#

root at debian:~# reboot
shutdown: /run/initctl: No such file or directory
init: /run/initctl: No such file or directory

<now hard reboot again!>

==================================================

root at debian:~# dpkg -l sysvinit systemd systemd-sysv
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version        Description
+++-==============-==============-============================================
ii  systemd        43-1           system and service manager
un  systemd-sysv   <none>         (no description available)
ii  sysvinit       2.88dsf-22     System-V-like init utilities
root at debian:~# ls -l /{dev,run}/initctl
ls: cannot access /dev/initctl: No such file or directory
prw------- 1 root root 0 Mar  9 15:37 /run/initctl
root at debian:~# ls -l /sys/fs/cgroup/systemd/
ls: cannot access /sys/fs/cgroup/systemd/: No such file or directory
root at debian:~#

root at debian:~# reboot

<system reboots as expected>

==================================================
==================================================
==================================================
==================================================
==================================================





More information about the Pkg-sysvinit-devel mailing list