From: Platoxia <platoxia@protonmail.com>
To: "ludo@gnu.org" <ludo@gnu.org>
Cc: "alex.ter.weele@gmail.com" <alex.ter.weele@gmail.com>,
"help-guix@gnu.org" <help-guix@gnu.org>
Subject: Re: reconfigure with mapped-devices broken after e37944d8270cdca5729e3583136c4fe9d487779c?
Date: Fri, 09 Mar 2018 12:34:48 -0500 [thread overview]
Message-ID: <UWnMugf-cMa8ceHVPSpTVQk0Wq7NeYz2sURbjLAMSMiUBk7eWmpcVdscTV5ge5UK8HFxuO78Y4iqItZQZ_AwDjzl5P-hUAke1etC0t2SEvs=@protonmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1420 bytes --]
I also encountered this problem with the same update. Previously, following the old example configurations from the GuixSD documentation for encrypting a partition led to a file-system section that excluded the 'title' attribute entirely. I believe this is due to the default for the 'title' parameter being 'device, which used to work fine with simply using the device name, as in (device "my-root").
According to the current manual:
" However, when the source of a file system is a mapped device
(*note Mapped Devices::), its ‘device’ field _must_ refer to
the mapped device name—e.g., ‘/dev/mapper/root-partition’—and
consequently ‘title’ must be set to ‘'device’. This is
required so that the system knows that mounting the file
system depends on having the corresponding device mapping
established."
As such, the file-system configuration section when using mapped devices should use 'device as the title parameter (or excluded completely since it is still the default), and the absolute path to the device name as the device parameter, as the following example shows:
(file-systems (cons (file-system
(title 'device)
(device "/dev/mapper/my-root")
(mount-point "/")
(type "ext4")
(dependencies mapped-devices))
%base-file-systems))
Platoxia
[-- Attachment #2: Type: text/html, Size: 3686 bytes --]
next reply other threads:[~2018-03-09 17:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-09 17:34 Platoxia [this message]
-- strict thread matches above, loose matches on Subject: below --
2018-03-07 4:26 reconfigure with mapped-devices broken after e37944d8270cdca5729e3583136c4fe9d487779c? Alex ter Weele
2018-03-07 21:09 ` Ludovic Courtès
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='UWnMugf-cMa8ceHVPSpTVQk0Wq7NeYz2sURbjLAMSMiUBk7eWmpcVdscTV5ge5UK8HFxuO78Y4iqItZQZ_AwDjzl5P-hUAke1etC0t2SEvs=@protonmail.com' \
--to=platoxia@protonmail.com \
--cc=alex.ter.weele@gmail.com \
--cc=help-guix@gnu.org \
--cc=ludo@gnu.org \
/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).