Skip to content

sig: avoid reading fstab during shutdown - #508

Merged
troglobit merged 1 commit into
finit-project:masterfrom
anees-r3hman:avoid-fstab-on-root-remount
Sep 27, 2026
Merged

troglobit merged 1 commit into
finit-project:masterfrom
anees-r3hman:avoid-fstab-on-root-remount

Conversation

@anees-r3hman

Copy link
Copy Markdown

During shutdown, Finit attempts several methods to remount the root filesystem
read-only. Currently, all methods run unconditionally, including a final
mount invocation that reads /etc/fstab.

On systems with an encrypted /etc/fstab, this can trigger an unnecessary
access during normal shutdown.

Stop after either fstab-independent remount succeeds, and use the regular
mount invocation only when both attempts fail.

Only fall back to the regular mount invocation when both
fstab-independent root remount attempts fail.
This avoids reading an encrypted fstab during a normal shutdown.

Signed-off-by: Anees Rehman <anees.rehman@atlascopco.com>
@troglobit
troglobit merged commit 1b10c37 into finit-project:master Sep 27, 2026
@troglobit

Copy link
Copy Markdown
Collaborator

Also cherry-picked to 4.x as 77d199f for the upcoming 4.18 release.

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.

2 participants