Skip to content

Commit

Permalink
Merge pull request #422 from az143/fstab-nofail
Browse files Browse the repository at this point in the history
  • Loading branch information
troglobit authored Dec 20, 2024
2 parents 465bc17 + 3cfe0a3 commit 74f0fcf
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/finit.c
Original file line number Diff line number Diff line change
Expand Up @@ -272,8 +272,13 @@ static int fsck(int pass)
* errors were corrected but that the boot may proceed.
*/
if (fsck_rc > 1) {
logit(LOG_CONSOLE | LOG_ALERT, "Failed fsck %s, attempting sulogin ...", dev);
sulogin(1);
if (hasmntopt(mnt,"nofail")) {
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;
}
Expand Down

0 comments on commit 74f0fcf

Please sign in to comment.