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

Fsck b4 mount #47

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Fsck b4 mount #47

wants to merge 2 commits into from

Conversation

bedhanger
Copy link
Contributor

The changes add support for checking the integrity of
filesystems mounted from within the initramfs.

Systemd wants the filesystem on which /usr resides mounted when
it finally takes over from initramfs, but does not seem to
launch a systemd-fsck job for that filesystem later on, even if
the filesystem is mounted ro. The result is that the
/usr-hosting filesystem could go unchecked for a long time.

The problem is not limited to /usr, but all early mounts
mentioned in initramfs.mounts.

Furthermore, fsck'ing should work on the physical device, final
mounting should take into account existing symbolic or logical
disk/LVM names for the purpose of enhanced readability.

@mudler
Copy link
Member

mudler commented Jan 27, 2018

I'm sorry to come back to you late.

Thanks for the PR, i agree, we need some sort of checking before mounting - but i don't want this to be imposed, it should come with an option to able to skip or enable it, if you are working on it i'll be glad to merge.

This change adds support for checking the integrity of
filesystems mounted from within the initramfs.

Systemd wants the filesystem on which /usr resides mounted when
it finally takes over from initramfs, but does not seem to
launch a systemd-fsck job for that filesystem later on, even if
the filesystem is mounted ro.  The result is that the
/usr-hosting filesystem could go unchecked for a long time.

The problem is not limited to /usr, but all early mounts
mentioned in initramfs.mounts.

Furthermore, fsck'ing should work on the physical device, final
mounting should take into account existing symbolic or logical
disk/LVM names for the purpose of enhanced readability.
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