all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How to install Guix System on LVM on LUKS?
@ 2021-05-21  5:58 Nikolay Velyurov
  2021-05-23  9:04 ` Nikolay Velyurov
  2021-05-24  5:50 ` Joshua Branson
  0 siblings, 2 replies; 4+ messages in thread
From: Nikolay Velyurov @ 2021-05-21  5:58 UTC (permalink / raw)
  To: help-guix

Hi geeks,

I try to install Guix System on LVM on LUKS. Installation succeeded,
but the system can't boot.

When powered on, GRUB stops with:

> Booting `GNU with Linux-Libre 5.11.15'
> error: no such device: /gnu/store/5axms2d6yqx1zqbcjn3cl015cbcaf7i1-linux-libre-5.11.15/bzImage.
> error: file `/gnu/store/5axms2d6yqx1zqbcjn3cl015cbcaf7i1-linux-libre-5.11.15/bzImage' not found.
> error: you need to load the kernel first.
> Press any key to continue...

Ok, I fixed that problem by doing:

> grub> ls
> (proc) (hd0) (hd0,gpt3) (hd0,gpt2) (hd0,gpt1)
> grub> insmod cryptodisk
> grub> insmod luks
> grub> insmod lvm
> grub> cryptomount (hd0,gpt3)
> Attempting to decrypt master key...
> Enter passphrase for hd0,gpt3 (7bf9bff8229847978d253d7a0ea31ae8):
> Slot 0 opened
> grub> ls
> (crypto0) (proc) (hd0) (hd0,gpt3) (hd0,gpt2) (hd0,gpt1) (lvm/vg0-home) (lvm/vg0-root) (lvm/vg0-swap)

However, now I get the following error:

> Welcome, this is GNU's early boot Guile.
> Use '--repl' for an initrd REPL.
>
> loading kernel modules...
>   Volume group "vg0" not found
>   Cannot process volume group vg0
> ice-9/boot-9.scm:1669:16: In procedure raise-exception:
> pre-mount actions failed

Do I need file-system-dependencies? Is there an example? Help me please...

*** Appx.1 Block devices list
> Dev              GiB    Struct  Mount point
> sda1               .25  fat32   /boot/efi
> sda2               .5   ext4    /boot
> sda3             15+    luks
> mapper/pv0              luks opened = lvm physical volume
> mapper/vg0-swap   1     swap
> mapper/vg0-root  10     ext4    /
> mapper/vg0-home   4+    ext4    /home

*** Appx.2 config.scm: bootloader, mapped-devices and file-systems
> (bootloader (bootloader-configuration
>               (bootloader grub-efi-bootloader)
>               (target "/boot/efi")))
>
> (mapped-devices
>  (list (mapped-device
>         (source "/dev/sda3")
>         (target "pv0")
>         (type luks-device-mapping))
>        (mapped-device
>         (source "vg0")
>         (targets (list "vg0-swap" "vg0-root" "vg0-home"))
>         (type lvm-device-mapping))))
>
> (file-systems (append
>                (list (file-system
>                        (device "/dev/mapper/vg0-root")
>                        (mount-point "/")
>                        (type "ext4"))
>                      (file-system
>                        (device "/dev/mapper/vg0-home")
>                        (mount-point "/home")
>                        (type "ext4"))
>                      (file-system
>                        (device "/dev/sda2")
>                        (mount-point "/boot")
>                        (type "ext4"))
>                      (file-system
>                        (device "/dev/sda1")
>                        (mount-point "/boot/efi")
>                        (type "vfat")))
>                %base-file-systems))

*** Appx.3 grub.cfg: menuentry
> menuentry "GNU with Linux-Libre 5.11.15" {
>   search --file --set /gnu/store/5axms2d6yqx1zqbcjn3cl015cbcaf7i1-linux-libre-5.11.15/bzImage
>   linux /gnu/store/5axms2d6yqx1zqbcjn3cl015cbcaf7i1-linux-libre-5.11.15/bzImage --root=/dev/mapper/vg0-root --system=/gnu/store/my6gn1kqajhi720s3x5h1gjj9n2y2hs7-system --load=/gnu/store/my6gn1kqajhi720s3x5h1gjj9n2y2hs7-system/boot modprobe.blacklist=usbmouse,usbkbd quiet
>   initrd /gnu/store/vwyf16g511h8ls44fabrqldq3nfhxljw-raw-initrd/initrd.cpio.gz
> }

Best regards,
Nikolay


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-05-27 10:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-05-21  5:58 How to install Guix System on LVM on LUKS? Nikolay Velyurov
2021-05-23  9:04 ` Nikolay Velyurov
2021-05-24  5:50 ` Joshua Branson
2021-05-25 20:25   ` Nikolay Velyurov

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.