From: Alexander Kuleshov Date: Tue, 2 Feb 2016 19:36:33 +0000 (+0600) Subject: manager: print fatal error if early mount failed X-Git-Tag: v231~684^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d723cd6554f0b4457d079d3be3ec07b2b5b011a9;p=platform%2Fupstream%2Fsystemd.git 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. --- diff --git a/src/core/main.c b/src/core/main.c index 84e292a..99ef723 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";