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 init script doesn't work with encrypted bcachefs filesystem #691

Open
Nanderty opened this issue Feb 8, 2024 · 0 comments
Open

fsck init script doesn't work with encrypted bcachefs filesystem #691

Nanderty opened this issue Feb 8, 2024 · 0 comments

Comments

@Nanderty
Copy link

Nanderty commented Feb 8, 2024

I have a secondary encrypted bcachefs partition, which I unlock in my initramfs:
bcachefs unlock <partition>
Once I boot, fsck tells me the following:

fsck                      | * Checking local filesystems  ... [ ok ]
fsck                      |error reading passphrase
fsck                      | * Filesystems repaired [ !! ]

But if I later on umount this drive and run
bcachefs fsck -ARv <partition>
I don't get any errors.
My best guess is that it can't access the passphrase in the keyring. But yet again, the mount init script can and root in userspace can aswell.

Edit: formatting

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

No branches or pull requests

1 participant