mirror of
https://github.com/troglobit/finit.git
synced 2026-11-08 16:11:10 +00:00
Merge pull request #422 from az143/fstab-nofail
This commit is contained in:
1 file changed
+7
-2
+7
-2
@@ -272,8 +272,13 @@ static int fsck(int pass)
|
|||||||
* errors were corrected but that the boot may proceed.
|
* errors were corrected but that the boot may proceed.
|
||||||
*/
|
*/
|
||||||
if (fsck_rc > 1) {
|
if (fsck_rc > 1) {
|
||||||
logit(LOG_CONSOLE | LOG_ALERT, "Failed fsck %s, attempting sulogin ...", dev);
|
if (hasmntopt(mnt,"nofail")) {
|
||||||
sulogin(1);
|
logit(LOG_CONSOLE | LOG_WARNING, "Ignoring failed fsck %s because of nofail option", dev);
|
||||||
|
fsck_rc = 0;
|
||||||
|
} else {
|
||||||
|
logit(LOG_CONSOLE | LOG_ALERT, "Failed fsck %s, attempting sulogin ...", dev);
|
||||||
|
sulogin(1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
rc += fsck_rc;
|
rc += fsck_rc;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user