bug#50566: [core-updates-frozen] Grub fails to decrypt LUKS partition (cryptomount not found)
Hey, >>#:strip-flags '("--strip-debug" "--enable-deterministic-archives") Pushed as 650e85d85514c5fae06adf97ae615643a41bbbd8 :). > That one works as well. I tested it :) Thanks for the suggestion Ludo and for the testing Jonathan. Mathieu
bug#50566: [core-updates-frozen] Grub fails to decrypt LUKS partition (cryptomount not found)
Am 20.09.21 um 00:47 schrieb Ludovic Courtès: ‘master’ uses ‘--strip-debug’ whereas ‘core-updates-frozen’ uses ‘--strip-unneeded’ (from commit e0f31baacc6ad30096a332b69433c85f5830bb2c). Instead of #:strip-binaries? #f, we could try: #:strip-flags '("--strip-debug" "--enable-deterministic-archives") That one works as well. I tested it :)
bug#50566: [core-updates-frozen] Grub fails to decrypt LUKS partition (cryptomount not found)
Hi! Mathieu Othacehe skribis: > Turns out stripping Grub modules was causing this issue. I'm not sure > why we do not experience this issue on master. Woow, good catch. > Anyway, 71aa29911cf3f4e6db5f9bff9237308b5f93283d fixes it for me. ‘master’ uses ‘--strip-debug’ whereas ‘core-updates-frozen’ uses ‘--strip-unneeded’ (from commit e0f31baacc6ad30096a332b69433c85f5830bb2c). Instead of #:strip-binaries? #f, we could try: #:strip-flags '("--strip-debug" "--enable-deterministic-archives") Thanks, Ludo’.
bug#50566: [core-updates-frozen] Grub fails to decrypt LUKS partition (cryptomount not found)
Am 19.09.21 um 17:02 schrieb Mathieu Othacehe: Turns out stripping Grub modules was causing this issue. I'm not sure why we do not experience this issue on master. Anyway, 71aa29911cf3f4e6db5f9bff9237308b5f93283d fixes it for me. Good catch and thanks for the fix, which works for me. I also discovered another issue related to image creation that I'll report separately. During boot I'll run into https://issues.guix.gnu.org/50566 like you. So I think we can close this bug and work on the next one :)
bug#50566: [core-updates-frozen] Grub fails to decrypt LUKS partition (cryptomount not found)
Turns out stripping Grub modules was causing this issue. I'm not sure why we do not experience this issue on master. Anyway, 71aa29911cf3f4e6db5f9bff9237308b5f93283d fixes it for me. I also discovered another issue related to image creation that I'll report separately. Thanks, Mathieu
bug#50566: [core-updates-frozen] Grub fails to decrypt LUKS partition (cryptomount not found)
Hi, I found today an easier reproducer. I built an installation image from current core-updates-frozen (716470cda447e8cc3e73b09a8dfdcf1032aa37f2). Booting from an USB stick leads to the same error that it comes only to "grub rescue>" saying "Unknown filesystem". I double checked and booted from an USB stick with an image from current master -> just fine. It would be interesting if others try to boot from an c-u-f image, especially on UEFI. I'll try to bisect the issue as I have no an "easy" reproducer :)
bug#50566: [core-updates-frozen] Grub fails to decrypt LUKS partition (cryptomount not found)
I went ahead and did a trick Tobias (nckx) told me in IRC. I booted a Guix installer from an USB stick and hit 'c' (command line) in its GRUB menu. Then I gave in the following commands: ``` insmod luks cryptomount (hd1,gpt2) Enter passphrase ...: set root=(crypto0) configfile /boot/grub/grub.cfg ``` I can then choose between the Guix system generations: 1x core-updates-frozen and 3x master. The latter did worked before my reconfigure on c-u-f. But non of them really worked. I have to enter the LUKS password a second time and then shepherd fails to start all the services. The cpu fan blows a bit loud: ``` failed to start service 'file-systems' failed to start service 'file-system-/boot/efi' failed to start service 'user-processes' [...] ``` An Alt+SysReq+E (SIGTERM all apart INIT) gives: ``` shepherd[1]: Service udev has been disabled. shepherd[1]: Respawning libvirtd. shepherd[1]: Service libvirtd has been started. ``` And some audit log message. Can audit break the boot? Has anyone an idea how to find out why those services start to fail? How to obtain logs? ~Jonathan
bug#50566: [core-updates-frozen] Grub fails to decrypt LUKS partition (cryptomount not found)
Hi folks, today I finally got my system reconfiguring on core-updates-frozen with almost all packages I use (minus telegram-desktop, josm and lilypond). But when I rebooted my PC it got stuck in the grub rescue console :( ``` Welcome to GRUB! Unkown command 'crpytomount'. error: disk 'cryptouuid/ad06...' not found. Entering rescue mode... [...] grub rescue> crpytomount -u ad06... Unknown command 'cryptomount'. [...] grub rescue> set cmdpath=(hd0)/EFI/Guix prefix=(cryptouuid)/ad06...)/boot/grub root=cryptouuid/ad06... ``` commit: d1732a007fff1549fd49bae595ef9541bea2a332 (pulled from) arch: x86_66 config: ``` (bootloader (bootloader-configuration (bootloader grub-efi-bootloader) (target "/boot/efi") (keyboard-layout keyboard-layout))) (mapped-devices (list (mapped-device (source (uuid "ad069897-6b43-4607-b5e9-3f00f9af74aa")) (target "cryptroot") (type luks-device-mapping (file-systems (append (list (file-system (mount-point "/boot/efi") (device (uuid "2954-F644" 'fat32)) (type "vfat")) (file-system (device "/dev/mapper/cryptroot") (mount-point "/") (type "ext4") (dependencies mapped-devices)) (file-system (mount-point "/media/jonathan/arbeit") (device (uuid "094e6082-fae5-4ba9-ad94-1a4b6d04a094")) (type "ext4"))) %base-file-systems)) ``` I have reconfigured the same system on master two or three days ago. The reboot back then was successful. I'll try to collect more information later today... ~Jonathan