nspawn: don't inherit read-only flag from disk image if --ephemeral is used

When --ephemeral is used there's no need to keep the image read-only, so
let's not do that then.
This commit is contained in:
Lennart Poettering
2015-04-22 16:56:51 +02:00
parent ffb296b2c2
commit aee327b816
+2 -1
View File
@@ -3607,7 +3607,8 @@ static int determine_names(void) {
if (r < 0)
return log_error_errno(r, "Invalid image directory: %m");
arg_read_only = arg_read_only || i->read_only;
if (!arg_ephemeral)
arg_read_only = arg_read_only || i->read_only;
} else
arg_directory = get_current_dir_name();