mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-08-29 01:50:15 +03:00
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.
This commit is contained in:
@ -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";
|
||||
|
Reference in New Issue
Block a user