From: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
To: "pelzflorian (Florian Pelz)" <pelzflorian@pelzflorian.de>
Cc: help-guix@gnu.org
Subject: Re: Install Guix System in a logical volume
Date: Sun, 28 Nov 2021 01:37:47 +0100 [thread overview]
Message-ID: <20211128013747.36e81232@primary_laptop> (raw)
In-Reply-To: <20211127112343.d3dlqfxtkead2og2@pelzflorian.localdomain>
[-- Attachment #1: Type: text/plain, Size: 1806 bytes --]
On Sat, 27 Nov 2021 12:24:15 +0100
"pelzflorian (Florian Pelz)" <pelzflorian@pelzflorian.de> wrote:
> On Wed, Nov 24, 2021 at 09:15:05PM +0000, David Lecompte wrote:
> > Can I install Guix System with the whole root file system (including
> > /boot) in a new logical volume that I create in the same volume
> > group?
>
> I shouldn’t answer in a hurry. As of November 2021, the GNU Guix repo
> contains a file gnu/tests/install.scm which contains a line
>
> ;; Since LVM support in guix currently doesn't allow root-on-LVM we
> use /home on LVM
>
> In theory it would be possible though.
I'm writing this mail from a Guix system running from a roottfs in an
ext4 partition that is in an lvm partition. The LVM physical volumes
(PV) are encrypted with LUKS.
If I recall well the limitation with LVM2 comes from the fact that
there is no (standard) way to make the grub image generated by Guix
support LVM2 and LUKS.
In my case GRUB isn't handled by Guix and the grub image I use was
built with LVM2 and LUKS support, and that works fine for me.
Here's part of my system.scm for the machine that boots on an LVM
rootfs:
> (define %lvm-vg
> (list
> (mapped-device
> (source (uuid "abcdef12-abcd-1234-abcd-1234abcd1234"))
> (target "internal-cleartext")
> (type luks-device-mapping))
> (mapped-device
> (source "my_vg_name")
> (targets (list "my_vg_name-guix32"))
> (type lvm-device-mapping))))
[...]
> (define %guix32-rootfs
> (file-system
> (device "/dev/mapper/my_vg_name-guix32")
> (mount-point "/")
> (type "ext4")
> (dependencies %lvm-vg)))
[...]
> (mapped-devices %lvm-vg)
[...]
> (file-systems (append (list
> %guix32-rootfs
[...]
Denis.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
prev parent reply other threads:[~2021-11-28 0:40 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-24 21:15 Install Guix System in a logical volume David Lecompte
2021-11-26 4:37 ` pelzflorian (Florian Pelz)
2021-11-26 4:41 ` pelzflorian (Florian Pelz)
2021-11-28 0:24 ` Denis 'GNUtoo' Carikli
2021-11-27 11:24 ` pelzflorian (Florian Pelz)
2021-11-28 0:37 ` Denis 'GNUtoo' Carikli [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211128013747.36e81232@primary_laptop \
--to=gnutoo@cyberdimension.org \
--cc=help-guix@gnu.org \
--cc=pelzflorian@pelzflorian.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.