Bug#784604: systemd: can't remove systemd unless it is correctly running

Michael Biebl biebl at debian.org
Fri May 8 12:34:18 BST 2015


Am 08.05.2015 um 05:22 schrieb Brian May:
> On Thu, 7 May 2015 at 22:30 Michael Biebl <biebl at debian.org> wrote:
> 
>> So, systemd.postinst seems to fail in the trigger
>> We do not call systemctl uncondionally here:
>>
>> _systemctl() {
>>     if [ -d /run/systemd/system ]; then
>>         systemctl "$@"
>>     fi
>> }
>>
>>
>> if [ "$1" = "triggered" ]; then
>>    _systemctl daemon-reload
>>    exit 0
>> fi
>>
>> So, this looks like you (wrongly) had a /run/systemd/system directory at
>> this point?
>>
> 
> Yes, looks like it:
> 
> root at scrooge:/# ls -la /run/systemd/system/
>         total 0
>                                     drwxr-xr-x 2 root root  40 May  8 02:50
> .                                                 drwxr-xr-x 6 root root
> 180 May  8 02:50 ..
> 
> That said, I'm still curious, why the systemctl call was made in the
>> first place. systemctl also complains with a D-Bus error.
>> Did you have a /var/run/dbus/system_bus_socket?
> 
> 
> Doesn't look like I have that:
> 
> root at scrooge:/# ls -la  /var/run/
> total 4
> drwxr-xr-x  4 root root   80 May  8 02:50 .
> drwxr-xr-x 20 root root 4096 May  8 02:50 ..
> drwxrwxrwt  2 root root   40 May  8 02:50 lock
> drwxr-xr-x  6 root root  180 May  8 02:50 systemd
> 
> 
> If that socket does not
>> exist, systemctl should fall back to use a private dbus socket which
>> doesn't require a run dbus system bus.
>> Was dbus installed at this point dbus.service and dbus.socket correctly
>> running?
>>
> 
> dbus is installed, however it is not running. In fact I think systemd
> hasn't actually started anything.
> 

I think the failure on uninstallation is just a red herring or just an
aspect of a bigger issue, i.e. your systemd installation is not fully
functional, most likely due to be run under OpenVZ (btw, it would have
been helpful to mention that in the bug report).

Which kernel version is that? Does it satisfy all requirements as listed
in /usr/share/doc/systemd/README.gz?

I assume, you can reproduce the uninstallation failure on real iron or
in KVM when using the official Debian Jessie kernel?


-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20150508/49a0c866/attachment-0002.sig>


More information about the Pkg-systemd-maintainers mailing list