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

zpool: fix default dataset getting shadowed #474

Merged
merged 2 commits into from
Dec 20, 2023

Conversation

Enzime
Copy link
Contributor

@Enzime Enzime commented Dec 19, 2023

If the zpool's root dataset is not the rootfs and gets mounted on creation, the actual rootfs will get mounted later and shadow the
current mountpoint.

Running zfs unmount is the easiest way to unmount the zpool's root dataset on creation without messing up the value of the mountpoint setting.

The first commit is a regression test that ensures that the default dataset doesn't get shadowed, which fails without the second commit.

If the zpool's root dataset is not the rootfs and gets mounted on
creation, the actual rootfs will get mounted later and shadow the
current mountpoint.

Running `zfs unmount` is the easiest way to unmount the zpool's root
dataset on creation without messing up the value of the `mountpoint`
setting.
@Lassulus Lassulus merged commit b4104fc into nix-community:master Dec 20, 2023
34 checks passed
@Enzime Enzime deleted the fix/zfs-root-dataset branch December 20, 2023 09:21
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.

None yet

2 participants