all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#44877: Root on LVM support
@ 2020-11-25 23:53 Mikhail Tsykalov
  2024-06-08 16:13 ` bug#44877: [PATCH] gnu: grub: load lvm grub module ashish.is--- via Bug reports for GNU Guix
  0 siblings, 1 reply; 2+ messages in thread
From: Mikhail Tsykalov @ 2020-11-25 23:53 UTC (permalink / raw)
  To: 44877

Guix System in current state can't boot from lvm partition because grub 
can't find kernel and initrd. This also applies to systems where 
/gnu/store is on lvm partition. Grub has lvm support in the form of 
"lvm" module, but it isn't loaded currently. Making grub config 
generator emit "insmod lvm" before grub starts accessing stuff on 
/gnu/store (so immediately after initial commit) will fix this.




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

* bug#44877: [PATCH] gnu: grub: load lvm grub module.
  2020-11-25 23:53 bug#44877: Root on LVM support Mikhail Tsykalov
@ 2024-06-08 16:13 ` ashish.is--- via Bug reports for GNU Guix
  0 siblings, 0 replies; 2+ messages in thread
From: ashish.is--- via Bug reports for GNU Guix @ 2024-06-08 16:13 UTC (permalink / raw)
  To: 44877; +Cc: Ashish SHUKLA

From: Ashish SHUKLA <ashish.is@lostca.se>

* gnu/bootloader/grub.scm (make-grub-configuration): load lvm grub module
  when generating configuration for cryptodisks setup.

Change-Id: I1dbb0c7dbf68a5f93db76dc29793a1f73be49ee2
---
Hi,

I have a Guix setup which has a LUKS2 partition containing a LVM
volume group on which kernels and initrds reside. I think this is one
of the common setups in which folks uses disk-encryption on
GNU/Linux. Since in Guix the kernels/initrd don't get copied to /boot
it requires GRUB to be able to unlock the LUKS2 volume, and look
inside the LVM partitions to find initrd, and kernel. The former part
is already there, this patch enables the latter part, so folks like me
who use LVM on top of LUKS be able to boot, otherwise it requires
going to grub command-line, and running "insmod lvm" prior to
selecting a boot option.

Thanks,
Ashish

 gnu/bootloader/grub.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gnu/bootloader/grub.scm b/gnu/bootloader/grub.scm
index 2723eda5f4..a4ca0bc217 100644
--- a/gnu/bootloader/grub.scm
+++ b/gnu/bootloader/grub.scm
@@ -445,7 +445,7 @@ (define* (make-grub-configuration grub config entries
           ;; Other type of devices aren't implemented.
           #~()))
     (let ((devices (map crypto-device->cryptomount store-crypto-devices))
-          (modules #~(format port "insmod luks~%insmod luks2~%")))
+          (modules #~(format port "insmod luks~%insmod luks2~%insmod lvm~%")))
       (if (null? devices)
           devices
           (cons modules devices))))

base-commit: 580d77d0fb12448ef1621699cc0c56e787e2aadb
-- 
2.45.2





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

end of thread, other threads:[~2024-06-09 19:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-25 23:53 bug#44877: Root on LVM support Mikhail Tsykalov
2024-06-08 16:13 ` bug#44877: [PATCH] gnu: grub: load lvm grub module ashish.is--- via Bug reports for GNU Guix

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.