nspawn, machine-id-setup: warn if read-only mount call fails

They are not crucial, but they shouldn't fail.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2013-03-31 14:32:48 -04:00
parent d73c3269cd
commit 10d18763ec
2 changed files with 5 additions and 3 deletions
+2 -2
View File
@@ -537,8 +537,8 @@ static int setup_boot_id(const char *dest) {
if (mount(from, to, "bind", MS_BIND, NULL) < 0) {
log_error("Failed to bind mount boot id: %m");
r = -errno;
} else
mount(from, to, "bind", MS_BIND|MS_REMOUNT|MS_RDONLY, NULL);
} else if (mount(from, to, "bind", MS_BIND|MS_REMOUNT|MS_RDONLY, NULL))
log_warning("Failed to make boot id read-only: %m");
unlink(from);
return r;