Open martinpitt opened 1 week ago
@sgallagher : That functionality is called in two cases:
sudo lsinitrd -m
does not contain "clevis"systemctl is-enabled clevis-luks-askpass.path
fails with "not-found"It shouldn't be possible to install clevis-dracut without clevis-systemd. But I noticed that merely installing clevis-dracut doesn't actually regenerate the initrd, so most likely you are in that situation?
Can you please check and confirm that it's the missing initrd refresh? It should work after sudo dracut --force --regenerate-all
. If it's that, then I know what to fix.
@sgallagher : That functionality is called in two cases:
* `sudo lsinitrd -m` does not contain "clevis"
This is the case
* `systemctl is-enabled clevis-luks-askpass.path` fails with "not-found"
This is enabled
It shouldn't be possible to install clevis-dracut without clevis-systemd. But I noticed that merely installing clevis-dracut doesn't actually regenerate the initrd, so most likely you are in that situation?
Seems likely.
Can you please check and confirm that it's the missing initrd refresh? It should work after
sudo dracut --force --regenerate-all
. If it's that, then I know what to fix.
I cannot run dracut on an ostree system, it seems:
dracut[F]: Can't write to /boot/efi/9de46937ac73408a91b563c4e76afb84/6.8.11-300.fc40.x86_64: Directory /boot/efi/9de46937ac73408a91b563c4e76afb84/6.8.11-300.fc40.x86_64 does not exist or is not accessible.
So, just to attempt this from bare-bones, I removed the layered clevis packages from my system and attempted to enable NBDE again. I got the same result: it properly detects that clevis is unavailable and then can't do anything because PackageKit is not installed.
Thanks @sgallagher for confirming. Yes, one can't rebuild the initrd in an OSTree system. This really needs to happen in clevis-dracut's %post
or a manuaal rebuild when building the ostree. So cockpit can't magically make this work, but we can handle this more gracefully in the UI -- i.e. not even offer it.
I already have
clevis-dracut
installed as an overlay package, so it shouldn't be trying to install it.Originally posted by @sgallagher in https://github.com/cockpit-project/cockpit/issues/20419#issuecomment-2152769175