machined: when cloning a raw disk image, also set the NOCOW flag

This commit is contained in:
Lennart Poettering
2015-01-08 23:13:45 +01:00
parent e45fc5e738
commit f2068bcce0
7 changed files with 20 additions and 10 deletions
+1 -1
View File
@@ -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);