Skip to content

fix: unlock once per bcachefs filesystem#1265

Open
amaanq wants to merge 1 commit into
nix-community:masterfrom
amaanq:fix-bcachefs-unlock
Open

fix: unlock once per bcachefs filesystem#1265
amaanq wants to merge 1 commit into
nix-community:masterfrom
amaanq:fix-bcachefs-unlock

Conversation

@amaanq

@amaanq amaanq commented May 26, 2026

Copy link
Copy Markdown
Member

Encrypted bcachefs filesystems can have several mountpoints, but we only
need to unlock the filesystem once. Unlocking inside each mount fragment
can hit EBUSY after the first mount has already opened the device.

This commit moves the unlock step to the filesystem-level mount setup
so it runs once before mounting the root and subvolumes, while keeping
the existing already-unlocked check.

Encrypted bcachefs filesystems can have several mountpoints, but we only
need to unlock the filesystem once. Unlocking inside each mount fragment
can hit `EBUSY` after the first mount has already opened the device.

This commit moves the unlock step to the filesystem-level mount setup
so it runs once before mounting the root and subvolumes, while keeping
the existing already-unlocked check.
@amaanq amaanq force-pushed the fix-bcachefs-unlock branch from 8976c1b to e2bc980 Compare May 26, 2026 00:13
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.

1 participant