summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-02-03 21:10:56 +0100
committerLennart Poettering <lennart@poettering.net>2016-02-03 21:10:56 +0100
commit37723f806ea80a5d1b257507f1a14db888ea93c0 (patch)
treed715eb32de523724c06521c08b1b35ba9303a033 /src/core
parenta92ff4003f693c0f6a8bb8be844b9c1692add71b (diff)
parentd723cd6554f0b4457d079d3be3ec07b2b5b011a9 (diff)
Merge pull request #2522 from 0xAX/check-early-mount
manager: print fatal error if early mount failed
Diffstat (limited to 'src/core')
-rw-r--r--src/core/main.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/main.c b/src/core/main.c
index 84e292afd2..99ef723fcb 100644
--- a/src/core/main.c
+++ b/src/core/main.c
@@ -1369,7 +1369,11 @@ int main(int argc, char *argv[]) {
initrd_timestamp = userspace_timestamp;
if (!skip_setup) {
- mount_setup_early();
+ r = mount_setup_early();
+ if (r < 0) {
+ error_message = "Failed to early mount API filesystems";
+ goto finish;
+ }
dual_timestamp_get(&security_start_timestamp);
if (mac_selinux_setup(&loaded_policy) < 0) {
error_message = "Failed to load SELinux policy";