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:
+2
-1
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user