From aee327b8169670986f6a48acbd5ffe1355bfcf27 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 22 Apr 2015 16:56:51 +0200 Subject: 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. --- src/nspawn/nspawn.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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(); -- cgit v1.2.3-54-g00ecf