Bilinmek Istemiyor <[email protected]> writes:> I am newbie to guix and have been trying to install it for the first time > with my usual setup with root on luks + lvm + btrfs. For a week, I thought > that there was something wrong with my config.scm until being aware of by > user ruther in guix channel of libera.chat. > > Basically in my case grub can open luks, in grup command prompt, I can see > the lvm devices by ls command and but load kernel somehow. > > I am really frustrated that such a important feature is neglected for > years. This is truly a show stopper for me. Please do something about > this. My stack is LUKS -> LVM -> BTRFS (seems the same as you) and I can boot just fine. I have read through the ticket, and must admit I am bit confused what does not work. Could you share what you configuration (config.scm) and layout partition layout look like? Maybe also whether you are using BIOS or UEFI? Thanks
In my case, I'm using UEFI with following partition layout: ❯ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTSnvme0n1 259:0 0 931,5G 0 disk ├─nvme0n1p1 259:1 0 512M 0 part /boot
├─nvme0n1p2 259:2 0 4G 0 part [SWAP]├─nvme0n1p3 259:3 0 696G 0 part │ └─cryptroot 253:0 0 696G 0 crypt │ ├─crypt-root 253:1 0 250G 0 lvm /gnu/store
│ │ / │ └─crypt-home 253:2 0 446G 0 lvm /home└─nvme0n1p4 259:4 0 231G 0 part
Following is the excerpt from the configuration I use:
(define %mapped-devices
(list (mapped-device
(source (uuid "aa5e6d2b-3174-4118-b035-f04a740d241f"))
(target "cryptroot")
(type luks-device-mapping))
(mapped-device
(source "crypt")
(targets (list "crypt-home" "crypt-root"))
(type lvm-device-mapping))))
(define %file-systems
(list (file-system
(device "/dev/mapper/crypt-root")
(mount-point "/")
(type "ext4")
(flags '(no-atime))
(needed-for-boot? #t)
(dependencies %mapped-devices))
(file-system
(device "/dev/mapper/crypt-home")
(mount-point "/home")
(type "ext4")
(flags '(no-atime))
(needed-for-boot? #t)
(dependencies %mapped-devices))
(file-system
(device "/dev/nvme0n1p1")
(mount-point "/boot")
(flags '(no-atime))
(needed-for-boot? #t)
(type "vfat"))))
(define %bootloader
(bootloader-configuration
(bootloader grub-efi-bootloader)
(timeout 7)
(menu-entries
(list
(menu-entry
(label "NixOS")
(device (uuid "3320-6183" 'fat))
(chain-loader "/EFI/systemd/systemd-bootx64.efi"))))
(targets '("/boot"))
(keyboard-layout %keyboard-layout)))
Until I do 'insmod lvm', grub is not able to find (let alone read) my LVM
volumes which are ext4 formatted to load kernel/initrd from.
Thanks!
--
Ashish SHUKLA | GPG: F682 CDCC 39DC 0FEA E116 20B6 C746 CFA9 E74F A4B0
"If I destroy you, what business is it of yours ?" (Dark Forest, Liu Cixin)
signature.asc
Description: PGP signature
