chiark / gitweb /
nspawn: support ephemeral boots from images
authorLennart Poettering <lennart@poettering.net>
Fri, 18 Nov 2016 17:38:06 +0000 (18:38 +0100)
committerSven Eden <yamakuzure@gmx.net>
Mon, 17 Jul 2017 15:58:35 +0000 (17:58 +0200)
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
src/basic/missing.h

index e9438aa90f3c38ab03467e504dee21ec299c1ffe..71a4489781cf3397c315e0c3ca60ee3f1c567784 100644 (file)
 #define GRND_RANDOM 0x0002
 #endif
 
+#ifndef FS_NOCOW_FL
+#define FS_NOCOW_FL 0x00800000
+#endif
+
 #ifndef BTRFS_IOCTL_MAGIC
 #define BTRFS_IOCTL_MAGIC 0x94
 #endif