Hi All,
I’m very new to Fedora (am more from the Ubuntu and recently the NixOS world).
I have set up my Fedora server with full disc encryption. To unlock the disk after a reboot I have scraped together some steps from various sources, the process was like presented here, but with some alterations: Fedora encrypted disk unlocking via SSH :: zaage.IT
Eventually I ran: sudo dracut -f -v --add network and after reboot I could indeed log in (with an ssh key), provide the decryption password and the system would boot into the main install.
However, some days later I updated everything, via Cockpit (which is very nice for someone new to Fedora!), but the system never came back. I investigated a bit and found that my SSH server for providing the decryption password never came online. So it looked like somewhere my special initramfs system got wiped.
After I ran sudo dracut -f -v --add network again everything again worked as expected.
So how can I prevent this wiping from happening? Is there some way to make a “post update hook”, or something?
Thank you!