mirror of
https://github.com/troglobit/finit.git
synced 2026-10-02 14:02:52 +07:00
Failure to open fstab should log to console, reboot if no sulogin
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
+1
-1
@@ -204,7 +204,7 @@ static int fsck(int pass)
|
||||
|
||||
fp = setmntent(fstab, "r");
|
||||
if (!fp) {
|
||||
err(1, "Failed opening fstab: %s", fstab);
|
||||
logit(LOG_CONSOLE | LOG_ALERT, "Failed opening fstab: %s", fstab);
|
||||
sulogin(1);
|
||||
}
|
||||
dbg("Opened %s, pass %d", fstab, pass);
|
||||
|
||||
Reference in New Issue
Block a user