Skip to content

feat: add zfs-encrypted-key-on-luks-zvol.nix #1095

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ncrmro
Copy link

@ncrmro ncrmro commented Jul 20, 2025

This file creates root on ZFS where the dataset is encrypted by a key that lives on a LUKS encrypted zvol. Allowing multiple passwords/TPM to unlock.

The only problem with it right now is that when using nixos-anywhere to run the install it hangs until I run cryptsetup luksClose /dev/mapper/credstore, which to postCreateHook is supposed to do.

When I run this I get

[root@nixos:~]# cryptsetup luksClose /dev/mapper/credstore
Device /dev/zd0 does not exist or access denied.
Device /dev/zd0 does not exist or access denied.
Device /dev/zd0 does not exist or access denied.

[root@nixos:~]# 
Broadcast message from root@nixos (Sun 2025-07-20 16:48:34 UTC):

The system will reboot now!

I understand it may not fit an example here but I'd like to see if anyone has any ideas for the luksClose issue..

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