summaryrefslogtreecommitdiff
path: root/src/nspawn
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-01-08 19:15:49 +0100
committerLennart Poettering <lennart@poettering.net>2015-01-08 23:13:45 +0100
commitf2068bcce01db31cdc9422f44185f3b49c04d2ce (patch)
treefd5f6ddf9b0c36e9deb24252267d5ecce0cb2fe3 /src/nspawn
parente45fc5e738b0b7700e8b4f3c4b25c58a49b44b27 (diff)
machined: when cloning a raw disk image, also set the NOCOW flag
Diffstat (limited to 'src/nspawn')
-rw-r--r--src/nspawn/nspawn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c
index e5a24dda70..59f6f38a49 100644
--- a/src/nspawn/nspawn.c
+++ b/src/nspawn/nspawn.c
@@ -1092,7 +1092,7 @@ static int setup_resolv_conf(const char *dest) {
return 0;
}
- r = copy_file("/etc/resolv.conf", where, O_TRUNC|O_NOFOLLOW, 0644);
+ r = copy_file("/etc/resolv.conf", where, O_TRUNC|O_NOFOLLOW, 0644, 0);
if (r < 0) {
log_warning_errno(r, "Failed to copy /etc/resolv.conf to %s: %m", where);