Bug#858986: systemd-container: systemd-nspawn fails to spawn container from a read-only image

2017-04-29 Thread Felix Wiedemann
On 28.04.2017 22:16, Michael Biebl wrote:
> Hi Felix
> 
Hi Michael,

> On Wed, 29 Mar 2017 12:20:52 +0200 Felix Wiedemann
> <1wied...@informatik.uni-hamburg.de> wrote:
>> Package: systemd-container
>> Version: 232-19
>> Severity: normal
>>
>> Dear Maintainer,
>>
>> systemd-nspawn fails to spawn a container from an image which has a
>> read-only file system as root partition (SquashFS):
>>
>>   $ systemd-nspawn -i foo.img
>>   Spawning container foo.img on /home/felix/foo.img.
>>   Press ^] three times within 1s to kill container.
>>   Failed to create directory /tmp/nspawn-root-jvD8mU/sys: Read-only file 
>> system
>>
>> I filed the bug upstream [0] and it was fixed in systemd v233 [1].
>> Please consider backporting the patch to stretch.
>>
>> [0]: https://github.com/systemd/systemd/issues/4711
>> [1]: 
>> https://github.com/systemd/systemd/commit/acbbf69b718260755a5dff60dd68ba239ac0d61b
> 
> Have you confirmed that applying this commit on top of v232 fixes the
> issue you have? Otherwise, can you give me instructions how to create
> such a read-only image or provide one for me, so I can test it myself.
> 
I have a script attached to this mail which builds such a disk image.
Also, I verfied that `systemd-nspawn -i $IMAGE` with such a disk image
fails on stretch/v232 and on jessie-backports/v230. It works on jessie/v215.

I just tried to build systemd v232 with the commit applied on top, but
it does not compile because it's missing the type 'MountSettingsMask'. I
have not looked into that any further.

> Regards,
> Michael
> 
Thanks,
Felix



build-ro-disk-image.sh
Description: application/shellscript


Bug#858986: systemd-container: systemd-nspawn fails to spawn container from a read-only image

2017-04-28 Thread Michael Biebl
Hi Felix

On Wed, 29 Mar 2017 12:20:52 +0200 Felix Wiedemann
<1wied...@informatik.uni-hamburg.de> wrote:
> Package: systemd-container
> Version: 232-19
> Severity: normal
> 
> Dear Maintainer,
> 
> systemd-nspawn fails to spawn a container from an image which has a
> read-only file system as root partition (SquashFS):
> 
>   $ systemd-nspawn -i foo.img
>   Spawning container foo.img on /home/felix/foo.img.
>   Press ^] three times within 1s to kill container.
>   Failed to create directory /tmp/nspawn-root-jvD8mU/sys: Read-only file 
> system
> 
> I filed the bug upstream [0] and it was fixed in systemd v233 [1].
> Please consider backporting the patch to stretch.
> 
> [0]: https://github.com/systemd/systemd/issues/4711
> [1]: 
> https://github.com/systemd/systemd/commit/acbbf69b718260755a5dff60dd68ba239ac0d61b

Have you confirmed that applying this commit on top of v232 fixes the
issue you have? Otherwise, can you give me instructions how to create
such a read-only image or provide one for me, so I can test it myself.

Regards,
Michael




-- 
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#858986: systemd-container: systemd-nspawn fails to spawn container from a read-only image

2017-03-29 Thread Felix Wiedemann
Package: systemd-container
Version: 232-19
Severity: normal

Dear Maintainer,

systemd-nspawn fails to spawn a container from an image which has a
read-only file system as root partition (SquashFS):

  $ systemd-nspawn -i foo.img
  Spawning container foo.img on /home/felix/foo.img.
  Press ^] three times within 1s to kill container.
  Failed to create directory /tmp/nspawn-root-jvD8mU/sys: Read-only file system

I filed the bug upstream [0] and it was fixed in systemd v233 [1].
Please consider backporting the patch to stretch.

[0]: https://github.com/systemd/systemd/issues/4711
[1]: 
https://github.com/systemd/systemd/commit/acbbf69b718260755a5dff60dd68ba239ac0d61b


-- System Information:
Debian Release: 9.0
  APT prefers testing
  APT policy: (600, 'testing'), (499, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386, armhf

Kernel: Linux 4.9.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages systemd-container depends on:
ii  dbus 1.10.16-1
ii  libacl1  2.2.52-3+b1
ii  libblkid12.29.1-1
ii  libbz2-1.0   1.0.6-8.1
ii  libc62.24-9
ii  libcurl3-gnutls  7.52.1-3
ii  libgcrypt20  1.7.6-1
ii  libip4tc01.6.0+snapshot20161117-5
ii  liblzma5 5.2.2-1.2+b1
ii  libseccomp2  2.3.1-2.1
ii  libselinux1  2.6-3+b1
ii  systemd  232-19
ii  zlib1g   1:1.2.8.dfsg-5

Versions of packages systemd-container recommends:
ii  btrfs-progs4.7.3-1
ii  btrfs-tools4.7.3-1
ii  libnss-mymachines  232-19

systemd-container suggests no packages.

-- no debconf information