help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: reconfigure with mapped-devices broken after e37944d8270cdca5729e358


From: Platoxia
Subject: Re: reconfigure with mapped-devices broken after e37944d8270cdca5729e3583136c4fe9d487779c?
Date: Fri, 09 Mar 2018 12:34:48 -0500

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]