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

zfs: run load-key on mount/unmount #921

Merged
merged 2 commits into from
Dec 20, 2024
Merged

zfs: run load-key on mount/unmount #921

merged 2 commits into from
Dec 20, 2024

Conversation

Mic92
Copy link
Member

@Mic92 Mic92 commented Dec 18, 2024

No description provided.

@Mic92 Mic92 marked this pull request as draft December 18, 2024 13:04
@Mic92 Mic92 force-pushed the zfs-fix branch 2 times, most recently from ab4e9b5 to 42c6075 Compare December 18, 2024 13:08
@Lassulus
Copy link
Collaborator

do we also need to do this for zfs_volume?

@Mic92 Mic92 force-pushed the zfs-fix branch 7 times, most recently from 8b1a60c to 6171a4a Compare December 20, 2024 11:33
@Mic92 Mic92 marked this pull request as ready for review December 20, 2024 11:33
@Mic92 Mic92 changed the title zfs: run load-key on mount zfs: run load-key on mount/unmount Dec 20, 2024
@Mic92 Mic92 force-pushed the zfs-fix branch 10 times, most recently from 254df00 to 47bb520 Compare December 20, 2024 13:06
@Mic92 Mic92 requested a review from Lassulus December 20, 2024 13:10
@Mic92 Mic92 merged commit 2ee76c8 into master Dec 20, 2024
1 check passed
@Mic92 Mic92 deleted the zfs-fix branch December 20, 2024 13:26
@Mic92 Mic92 restored the zfs-fix branch December 20, 2024 13:28
@Enzime
Copy link
Member

Enzime commented Dec 22, 2024

[web01] + zpool list zroot
[web01] + zpool import -l -R /mnt zroot
[web01] Key load error: Failed to open key material file: No such file or directory
[web01] 0 / 1 keys successfully loaded

This PR didn't work for me, however I'm not sure if it's because I already have an installed system and I was just trying to run the mount script

I tested again, this is working 🎉 I think I just forgot to copy over the ZFS key before trying the mount script

@Enzime Enzime deleted the zfs-fix branch December 22, 2024 04:59
@Mic92 Mic92 restored the zfs-fix branch January 14, 2025 14:20
@Gerg-L Gerg-L mentioned this pull request Jan 14, 2025
@Mic92 Mic92 deleted the zfs-fix branch January 14, 2025 17:35
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.

3 participants