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
@@ -256,7 +256,7 @@ static int process_locale(void) {
if (arg_copy_locale && arg_root) {
mkdir_parents(etc_localeconf, 0755);
r = copy_file("/etc/locale.conf", etc_localeconf, 0, 0644);
r = copy_file("/etc/locale.conf", etc_localeconf, 0, 0644, 0);
if (r != -ENOENT) {
if (r < 0)
return log_error_errno(r, "Failed to copy %s: %m", etc_localeconf);