From: Matt Huszagh <huszaghmatt@gmail.com>
To: Tobias Geerinckx-Rice <me@tobias.gr>
Cc: help-guix@gnu.org
Subject: Re: guix system init with mounted btrfs
Date: Sun, 23 Jun 2019 10:36:22 -0700 [thread overview]
Message-ID: <875zowjjah.fsf@gmail.com> (raw)
In-Reply-To: <87v9wwscbm.fsf@nckx> (Tobias Geerinckx-Rice's message of "Sun, 23 Jun 2019 14:42:05 +0200")
Thanks for the reply/suggestions Tobias!
Tobias Geerinckx-Rice <me@tobias.gr> writes:
>> mount -o subvol=@guixsd,$o_btrfs LABEL=btrfs /mnt
>> mount -o subvol=@gnu,$o_btrfs LABEL=btrfs /mnt/gnu
>
> The two above are especially problematic: Guix's GRUB looks only for /gnu/store/…-linux/, which is
> now two indirections away.
>
> Guix System *probably* supports⁰ ‘in-place’ subvolumes like
>
> btrfs subvol create /gnu/store
>
> only because it doesn't need to support them: they're just directories.
>
>> mount -o subvol=@grub,$o_btrfs LABEL=btrfs /mnt/boot/grub
>
> Does GRUB support magically finding itself elsewhere like this? Does this work on other
> distributions? If so, do you know how?
Ok, so I've simplified the subvolume layout somewhat:
mount -t btrfs -o compress=lzo LABEL=btrfs /mnt
btrfs subvolume create /mnt/@guixsd
btrfs subvolume create /mnt/@home
btrfs subvolume create /mnt/@snapshots
umount /mnt
o_btrfs=defaults,X-mount.mkdir,compress=lzo,ssd,noatime
mount -o subvol=@guixsd,$o_btrfs LABEL=btrfs /mnt
mount -o subvol=@home,$o_btrfs LABEL=btrfs /mnt/home
mount -o subvol=@snapshots,$o_btrfs LABEL=btrfs /mnt/.snapshots
mount -o X-mount.mkdir /dev/nvme0n1p1 /mnt/boot/efi
guix system init succeeds with this layout! So it seems like you're
right and guix only currently supports in-place subvolumes.
Additionally, this appears to fix another probable error which I didn't
originally mention. grub.cfg was omitting path components. So the linux
command was something like linux /store/... instead of
linux /gnu/store/...
That's now fixed.
I'm now encountering another error when attempting to boot however. I
have 2 luks-encrypted SSDs and grub only prompts me for one
passphrase. Since I'm using a BTRFS filesystem spanning partitions from
both devices, I'm sent to a grub rescue prompt after decrypting the
first device. I took a look through the GRUB reference manual and it
looks like decryption is performed by the "cryptomount"
command. However, I don't see any reference to "cryptomount" or
"mkconfig" (for grub-mkconfig) in the guix source code. Additionally,
when I look at the generated grub.cfg file I don't see cryptomount
anywhere. Still, it does at least prompt me for one passphrase.
I've listed both devices as mapped-devices:
(define cryptnvme
(mapped-device
(source (uuid "ee3b58e3-e3a1-4d83-8306-060fcd102761"))
(target "cryptnvme")
(type luks-device-mapping)))
(define cryptsd
(mapped-device
(source (uuid "4b61ed37-f628-4d78-b6eb-099be4a25b15"))
(target "cryptsd")
(type luks-device-mapping)))
...
(mapped-devices (list cryptnvme cryptsd))
Any thoughts on what might be causing that?
> You're damn right that this needs to be improved. Hands welcome :-)
Once I get the simple subvolume layout working I'll take a look at
getting the more complex setup to work and report back!
Thanks
Matt
next prev parent reply other threads:[~2019-06-23 17:36 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-23 2:05 guix system init with mounted btrfs Matt Huszagh
2019-06-23 12:42 ` Tobias Geerinckx-Rice
2019-06-23 12:47 ` Tobias Geerinckx-Rice
2019-06-23 17:36 ` Matt Huszagh [this message]
2019-06-23 21:10 ` Matt Huszagh
2019-06-24 11:49 ` Efraim Flashner
2019-06-24 14:51 ` Matt Huszagh
2019-06-24 17:54 ` Matt Huszagh
2019-06-25 6:27 ` Efraim Flashner
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
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=875zowjjah.fsf@gmail.com \
--to=huszaghmatt@gmail.com \
--cc=help-guix@gnu.org \
--cc=me@tobias.gr \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).