diff options
author | Alexander Kuleshov <kuleshovmail@gmail.com> | 2016-02-03 01:36:33 +0600 |
---|---|---|
committer | Alexander Kuleshov <kuleshovmail@gmail.com> | 2016-02-03 01:45:41 +0600 |
commit | d723cd6554f0b4457d079d3be3ec07b2b5b011a9 (patch) | |
tree | 99076e228ed20244111a24ff745770309cfa3803 /src/core/main.c | |
parent | c5c41f1e57a620266ea08daffbf01e922e83c775 (diff) |
manager: print fatal error if early mount failed
The mount_setup_early() can fail and if it will occur, there is
no sense to make selinux setup and etc.
Diffstat (limited to 'src/core/main.c')
-rw-r--r-- | src/core/main.c | 6 |
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"; |