Closed Renner0E closed 1 week ago
Check permissions, also be careful about / in ostree. There are two roots and after boot you use the image one.
So it would be /sysroot/root/keys/secret.key
But yeah, its a completely custom setup so its on you.
I ended up moving my keyfiles in /etc/cryptsetup-keys.d/
I don't know if that is the correct place. I don't remember where I found it.
So far haven't had any issues. Will report back again if it breaks from F41 to F42
Permissions are 700 root:root
for the individual keyfiles
Describe the bug
This was my first boot into F41. I run a bazzite derived image.
This time however I typed in my rootfs password and then was prompted for the passphrases of all my other drives. I pressed Esc and spammed Ctrl+D and made the prompt timeout so the responsible systemd-cryptsetup services would fail. I then saw SDDM, switched ttys, logged in and ran lsblk and all the drives were mounted correctly.
Is this on me? Should I put my keyfile somewhere else?
I'll happily provide more log files etc.
What did you expect to happen?
Normally I would get prompted for my password of my rootfs which has a keyfile in /root/keys/secret.key. This keyfile then unlocks all my other drives like backup HDD, Games SSD, and home SSD. These drives also can be unlocked with a password. So I only have to type in one password to unlock all my drives.
Output of
rpm-ostree status
State: idle AutomaticUpdates: stage; rpm-ostreed-automatic.timer: last run 20min ago Deployments: ● ostree-image-signed:docker://ghcr.io/renner0e/atomic-desktop Digest: sha256:5b4a475ef77b74b57d20d3708dfdca26ce77d4bfeda77e7f7528d4bf833e0d94 Version: 41.20241029.1 (2024-10-29T17:21:27Z) RemovedBasePackages: firewall-config 2.2.3-2.fc41 InitramfsEtc: /etc/vconsole.conf
ostree-image-signed:docker://ghcr.io/renner0e/atomic-desktop Digest: sha256:09e8f8369aefc14b1ad7dd367efb35f3bd076f537c5688ddd16ce9ab509bfb53 Version: 40.20241020 (2024-10-28T17:21:54Z) RemovedBasePackages: firewall-config 2.1.3-1.fc40 InitramfsEtc: /etc/vconsole.conf
Hardware
Operating System: Bazzite 41 KDE Plasma Version: 6.2.2 KDE Frameworks Version: 6.7.0 Qt Version: 6.7.2 Kernel Version: 6.11.5-307.bazzite.fc41.x86_64 (64-bit) Graphics Platform: Wayland Processors: 24 × AMD Ryzen 9 7900X 12-Core Processor Memory: 30.9 GiB of RAM Graphics Processor: AMD Radeon RX 6750 XT
Extra information or context
I recall having this exact problem a couple months ago but I could hard shutdown my PC and it worked as expected afterwards. This didn't work this time.
sudo journalctl -b -p warning | grep systemd-cryptsetup