Bug#830575: nspawn lacks a dependency on dbus

2016-07-11 Thread Michael Biebl
Am 11.07.2016 um 15:02 schrieb Jan Engelhardt:
> 
> On Monday 2016-07-11 14:18, Michael Biebl wrote:
>> Am 09.07.2016 um 18:33 schrieb Jan Engelhardt:
>>> 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.
>>
>> systemd has a Recommends: dbus, so I assume you have
>> Recommends-installed-by-default disabled?
> 
> I have whatever default Debian gave me, and I would not be surprised
> if that was indeed disabled - it has been disabled in the
> distribution for as long as I can remember. And I am not even
> contesting that default.

The default is to install Recommends by default.
So I wonder how you ended up without dbus.


> As for the systemd package, it would therefore appear that the
> Recommends should be turned into Requires.

For the systemd-container package we might consider adding a hard
depends if systemd-nspawn and machined don't work without it.



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



signature.asc
Description: OpenPGP digital signature


Bug#830575: nspawn lacks a dependency on dbus

2016-07-11 Thread Jan Engelhardt

On Monday 2016-07-11 14:18, Michael Biebl wrote:
>Am 09.07.2016 um 18:33 schrieb Jan Engelhardt:
>> 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.
>
>systemd has a Recommends: dbus, so I assume you have
>Recommends-installed-by-default disabled?

I have whatever default Debian gave me, and I would not be surprised
if that was indeed disabled - it has been disabled in the
distribution for as long as I can remember. And I am not even
contesting that default.

As for the systemd package, it would therefore appear that the
Recommends should be turned into Requires.



Bug#830575: nspawn lacks a dependency on dbus

2016-07-11 Thread Ansgar Burchardt
On Mon, 2016-07-11 at 14:18 +0200, Michael Biebl wrote:
> Am 09.07.2016 um 18:33 schrieb Jan Engelhardt:
> > 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.
> 
> systemd has a Recommends: dbus, so I assume you have
> Recommends-installed-by-default disabled?

If systemd-container requires dbus to work at all, we could just add a
"Depends: dbus" there. We already did so for libpam-systemd (as logind
works only with dbus too).

Ansgar



Bug#830575: nspawn lacks a dependency on dbus

2016-07-11 Thread Michael Biebl
Am 09.07.2016 um 18:33 schrieb Jan Engelhardt:
> 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.

systemd has a Recommends: dbus, so I assume you have
Recommends-installed-by-default disabled?


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



signature.asc
Description: OpenPGP digital signature


Bug#830575: nspawn lacks a dependency on dbus

2016-07-09 Thread Jan Engelhardt
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@zfrei97:/var/lib/docker/btrfs/subvolumes# btrfs sub snap 
1e7fd030e8111cb3d82d0fbc36b0c1ec28cb9ff036b506dc4958884e1b6b1599 /t
Create a snapshot of 
'1e7fd030e8111cb3d82d0fbc36b0c1ec28cb9ff036b506dc4958884e1b6b1599' in '//t'
root@zfrei97:/var/lib/docker/btrfs/subvolumes# cd /t
root@zfrei97:/t# touch it
root@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@zfrei97:/t# echo $?
1
root@zfrei97:/t# machinectl 
Failed to create bus connection: No such file or directory
root@zfrei97:/t# systemctl start systemd-machined
Failed to start systemd-machined.service: Unit dbus.socket not found.
root@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@zfrei97:/etc# machinectl 
MACHINE CLASS SERVICE

0 machines listed.
root@zfrei97:/etc# cd
root@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@t:/#