From 084937b3d7c4da3e3c48d05779f8cfbdc39a2ce6 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 18 Nov 2016 18:38:06 +0100 Subject: [PATCH] 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 --- src/basic/missing.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/basic/missing.h b/src/basic/missing.h index e9438aa90..71a448978 100644 --- a/src/basic/missing.h +++ b/src/basic/missing.h @@ -146,6 +146,10 @@ #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 -- 2.30.2