Bug#858149: systemd-nspawn: ephemeral flag ignored with raw images

Michael Biebl biebl at debian.org
Fri Apr 28 21:18:27 BST 2017


On Sat, 18 Mar 2017 23:16:35 +0100 Antoine Musso <hashar at free.fr> wrote:
> Package: systemd-container
> Version: 230-7~bpo8+2
> Severity: important
> 
> Dear Maintainer,
> 
> Short version
> =============
> 
> Assuming one has an image /var/lib/machines/jessie.raw and spawn it
> with: systemd-nspawn --ephemeral -m jessie
> The jessie.raw ends up being modified.
> 
> Fix released with systemd 233 that should be backported:
> https://github.com/poettering/systemd/commit/0f3be6ca4dbbac8350cd8f10a8968d31f7bc13b6
> 
> Longer version
> ==============
> 
> systemd-nspawn has a [-x|--ephemeral] option which is supposed to
> snapshot the image and boot a container out of it. Once the container is
> terminated, the snapshot is dismissed entirely.
> 
> The ephemeral option is ignored entirely when using a raw image, for
> example via --machine which can load either a fs tree if the name match
> a directory or a raw image if the base name match.
> 
> The upstream issue has a detailled reproducible case:
> https://github.com/systemd/systemd/issues/4664
> 
> Original thread:
> https://lists.freedesktop.org/archives/systemd-devel/2016-November/037699.html
> 
> The fix is commit 0f3be6ca4
> https://github.com/poettering/systemd/commit/0f3be6ca4dbbac8350cd8f10a8968d31f7bc13b6
> 
> It seems straightforward to backport to jessie-backports and for
> stretch.   Non ephemeral ephemeral containers sounds like a release
> critical bug to me.

Well, not release critical, but something we might fix indeed.

Antoine, have to tested the commit
0f3be6ca4dbbac8350cd8f10a8968d31f7bc13b6 applied on top of v232 to fix
the issue you have?

Regards,
Michael

-- 
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: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-systemd-maintainers/attachments/20170428/34198869/attachment.sig>


More information about the Pkg-systemd-maintainers mailing list