diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/nspawn/nspawn.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c index 1a9b3be5ec..f43ffd97c5 100644 --- a/src/nspawn/nspawn.c +++ b/src/nspawn/nspawn.c @@ -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(); |