talos icon indicating copy to clipboard operation
talos copied to clipboard

ZFS auto load key and mount datasets

Open runningman84 opened this issue 1 year ago • 1 comments

Feature Request

It would be great if the zfs importer service would also call zfs load-key -a in order to load all keys from the disk (which could be stored for example in /var/keyname.key). Furthermore it should also autmount the datasets using zfs mount.

Description

Right now it is difficult to deal with zfs in talos because some commands can only be executed in some privileged pod. At this point it is already too late in the boot process and some other pods might crash because they cannot access the data.

Reference docs

https://arstechnica.com/gadgets/2021/06/a-quick-start-guide-to-openzfs-native-encryption/ https://wiki.archlinux.org/title/ZFS#Unlock_at_boot_time:_systemd

runningman84 avatar Jun 01 '24 18:06 runningman84

This should do the trick https://github.com/siderolabs/extensions/pull/400

runningman84 avatar Jun 02 '24 08:06 runningman84

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] avatar Feb 14 '25 02:02 github-actions[bot]

This issue was closed because it has been stalled for 7 days with no activity.

github-actions[bot] avatar Feb 19 '25 02:02 github-actions[bot]