pmem / ndctl

A "device memory" enabling project encompassing tools and libraries for CXL, NVDIMMs, DAX, memory tiering and other platform memory device topics.
Other
272 stars 139 forks source link

ndctl needed in initramfs #118

Open jah63 opened 5 years ago

jah63 commented 5 years ago

As load-keys is a sub-command of ndctl and is load-keys needed to unlock the dimms during boot, ndctl needs to be in the initramfs. I understand from earlier email conversation that distro partners are being requested to include this command in the initramfs so this issue is here for completeness and verification that such an approach is being done and is sufficient. Thanks

djbw commented 5 years ago

I'd consider this issue a duplicate of https://github.com/pmem/ndctl/issues/117

yanglongkanglo commented 2 years ago

Hello, we also encounter the same problem. The system needs to use the ndctl command during the boot process, but the initramfs file does not contain the ndctl package /usr/bin/ndctl:No such file or directory message is displayed. Are there any plans to solve the problem?

sscargal commented 2 years ago

A better approach is to change the current behavior to lazy-load the keys later in the boot process once the network is up, so we can reach keys stored locally or remotely in a key manager/vault.

We can add the nofail option to pmem mount entries in the /etc/fstab or move them to systemd services and have them depend on another ndctl-load-keys systemd service, for example.