Bug#830575: nspawn lacks a dependency on dbus
Jan Engelhardt
jengelh at inai.de
Sat Jul 9 17:33:23 BST 2016
Package: systemd-container
Version: 230-5
nspawn fails to start the selected program. It appears to need dbus, and Debian
is missing a Requires:. System has version "stretch main" listed in apt
sources.list.
root at zfrei97:/var/lib/docker/btrfs/subvolumes# btrfs sub snap 1e7fd030e8111cb3d82d0fbc36b0c1ec28cb9ff036b506dc4958884e1b6b1599 /t
Create a snapshot of '1e7fd030e8111cb3d82d0fbc36b0c1ec28cb9ff036b506dc4958884e1b6b1599' in '//t'
root at zfrei97:/var/lib/docker/btrfs/subvolumes# cd /t
root at zfrei97:/t# touch it
root at zfrei97:/t# systemd-nspawn -D /t -M t /bin/bash
Spawning container t on /t.
Press ^] three times within 1s to kill container.
Failed to open system bus: No such file or directory
Failed to create directory /t/sys/fs/selinux: Read-only file system
Failed to create directory /t/sys/fs/selinux: Read-only file system
root at zfrei97:/t# echo $?
1
root at zfrei97:/t# machinectl
Failed to create bus connection: No such file or directory
root at zfrei97:/t# systemctl start systemd-machined
Failed to start systemd-machined.service: Unit dbus.socket not found.
root at zfrei97:/etc# apt-get install dbus
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libcap-ng0 libdbus-1-3
Suggested packages:
dbus-user-session | dbus-x11
The following NEW packages will be installed:
dbus libcap-ng0 libdbus-1-3
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 406 kB of archives.
After this operation, 1,030 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://ftp.de.debian.org/debian stretch/main amd64 libcap-ng0 amd64 0.7.7-3 [13.6 kB]
Get:2 http://ftp.de.debian.org/debian stretch/main amd64 libdbus-1-3 amd64 1.10.8-1 [188 kB]
Get:3 http://ftp.de.debian.org/debian stretch/main amd64 dbus amd64 1.10.8-1 [204 kB]
Fetched 406 kB in 0s (2,377 kB/s)
Selecting previously unselected package libcap-ng0:amd64.
(Reading database ... 23795 files and directories currently installed.)
Preparing to unpack .../libcap-ng0_0.7.7-3_amd64.deb ...
Unpacking libcap-ng0:amd64 (0.7.7-3) ...
Selecting previously unselected package libdbus-1-3:amd64.
Preparing to unpack .../libdbus-1-3_1.10.8-1_amd64.deb ...
Unpacking libdbus-1-3:amd64 (1.10.8-1) ...
Selecting previously unselected package dbus.
Preparing to unpack .../dbus_1.10.8-1_amd64.deb ...
Unpacking dbus (1.10.8-1) ...
Processing triggers for libc-bin (2.22-13) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for systemd (230-5) ...
Setting up libcap-ng0:amd64 (0.7.7-3) ...
Setting up libdbus-1-3:amd64 (1.10.8-1) ...
Setting up dbus (1.10.8-1) ...
Processing triggers for libc-bin (2.22-13) ...
Processing triggers for systemd (230-5) ...
root at zfrei97:/etc# machinectl
MACHINE CLASS SERVICE
0 machines listed.
root at zfrei97:/etc# cd
root at zfrei97:~# systemd-nspawn -D /t -M t /bin/bash
Spawning container t on /t.
Press ^] three times within 1s to kill container.
Failed to create directory /t/sys/fs/selinux: Read-only file system
Failed to create directory /t/sys/fs/selinux: Read-only file system
root at t:/#
More information about the Pkg-systemd-maintainers
mailing list