Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fstab with UUID/LABEL: nofail handling for fsck #422

Merged
merged 1 commit into from
Dec 20, 2024

Conversation

az143
Copy link
Contributor

@az143 az143 commented Dec 17, 2024

fix for #421: add support for 'nofail' fstab option. if present, finit's fsck invocation ignores errors for this device.

this is useful if you have an fstab entry for a device with UUID= or LABEL= which isn't always present and which you'd like to not bail on (so you set nofail). in this case finit leaves the presence-or-not decision to fsck, which exits nonzero.

for block devices that are directly listed in fstab this change isn't important, because for such finit looks for the blockdev's existence and skips the fsck if n/a.

Copy link
Owner

@troglobit troglobit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch, and thank you for the PR! Only a small mistake in the patch.

src/finit.c Outdated Show resolved Hide resolved
@az143
Copy link
Contributor Author

az143 commented Dec 18, 2024 via email

@troglobit
Copy link
Owner

On Wed, 18 Dec 2024 00:53:58 -0800, Joachim Wiberg writes:
Nice catch, and thank you for the PR! Only a small mistake in the patch.
ooops, sorry about that. patch patched...sigh

-- Alexander Zangerl + GPG Key 2FCCF66BB963BD5F + https://snafu.priv.at/ "Opinions are like assholes, I'll let you know when I want yours." -- David Cross and/or Bob Odenkirk

No worries, happens to the best of us 😃

Please rebase, squash, and force-push your branch.

add support for 'nofail' fstab option. if present, finit's fsck invocation ignores errors for this device.

this is useful if you have an fstab entry for a device with UUID= or LABEL= which isn't always present and which you'd like to not
bail on (so you set nofail). in this case finit leaves the presence-or-not decision to fsck, which exits nonzero.

for block devices that are directly listed in fstab this change isn't important, because for such finit looks for the blockdev's existence and skips the fsck if n/a.
@az143
Copy link
Contributor Author

az143 commented Dec 19, 2024

squashed and pushed

Copy link
Owner

@troglobit troglobit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@troglobit troglobit merged commit 74f0fcf into troglobit:master Dec 20, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fstab with UUID or LABEL: boot stops and goes into sulogin if device absent, no support for nofail option
2 participants