summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-08-03 14:51:05 +0200
committerLennart Poettering <lennart@poettering.net>2016-08-03 14:52:16 +0200
commitf7b7b3df9e24713464d9089f62958c8c5c3aac49 (patch)
tree716af5499e5dbea6379301ff58374c8ffcb74cbf
parent70493828032abc74e5134563a915c4a3ccdde7f2 (diff)
nspawn: if we can't mark the boot ID RO let's fail
It's probably better to be safe here.
-rw-r--r--src/nspawn/nspawn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c
index b7c2fe9e55..5c6605a08e 100644
--- a/src/nspawn/nspawn.c
+++ b/src/nspawn/nspawn.c
@@ -1320,7 +1320,7 @@ static int setup_boot_id(const char *dest) {
if (mount(from, to, NULL, MS_BIND, NULL) < 0)
r = log_error_errno(errno, "Failed to bind mount boot id: %m");
else if (mount(NULL, to, NULL, MS_BIND|MS_REMOUNT|MS_RDONLY|MS_NOSUID|MS_NODEV, NULL) < 0)
- log_warning_errno(errno, "Failed to make boot id read-only, ignoring: %m");
+ r = log_error_errno(errno, "Failed to make boot id read-only: %m");
(void) unlink(from);
return r;