nspawn: support ephemeral boots from images
authorLennart Poettering <lennart@poettering.net>
Fri, 18 Nov 2016 17:38:06 +0000 (18:38 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 22 Nov 2016 12:35:09 +0000 (13:35 +0100)
commit0f3be6ca4dbbac8350cd8f10a8968d31f7bc13b6
tree0d261da3442bf68af3818ad31dc0e57d86482fc4
parent1a1b13c9573b8cd30a4ab8dca2ec7961e460f083
nspawn: support ephemeral boots from images

Previously --ephemeral was only supported with container trees in btrfs
subvolumes (i.e. in combination with --directory=). This adds support for
--ephemeral in conjunction with disk images (i.e. --image=) too.

As side effect this fixes that --ephemeral was accepted but ignored when using
-M on a container that turned out to be an image.

Fixes: #4664
man/systemd-nspawn.xml
src/basic/missing.h
src/nspawn/nspawn.c