From mboxrd@z Thu Jan 1 00:00:00 1970 From: Taylan Ulrich =?UTF-8?Q?Bay=C4=B1rl=C4=B1/Kammer?= Subject: bug#31889: Filesystems must not depend on device mappings? Date: Mon, 18 Jun 2018 23:11:54 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000e246a5056ef1038e" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59012) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fV1SR-00053K-Js for bug-guix@gnu.org; Mon, 18 Jun 2018 17:13:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fV1SQ-0002xd-EM for bug-guix@gnu.org; Mon, 18 Jun 2018 17:13:03 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:47477) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fV1SQ-0002xV-9Q for bug-guix@gnu.org; Mon, 18 Jun 2018 17:13:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fV1SQ-0003Jl-38 for bug-guix@gnu.org; Mon, 18 Jun 2018 17:13:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58616) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fV1RN-00050F-N0 for bug-guix@gnu.org; Mon, 18 Jun 2018 17:11:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fV1RM-0002CL-Ie for bug-guix@gnu.org; Mon, 18 Jun 2018 17:11:57 -0400 Received: from mail-lf0-x22e.google.com ([2a00:1450:4010:c07::22e]:33823) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fV1RM-0002AW-AQ for bug-guix@gnu.org; Mon, 18 Jun 2018 17:11:56 -0400 Received: by mail-lf0-x22e.google.com with SMTP id v84-v6so3672910lfa.1 for ; Mon, 18 Jun 2018 14:11:56 -0700 (PDT) List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: 31889@debbugs.gnu.org --000000000000e246a5056ef1038e Content-Type: text/plain; charset="UTF-8" If in my OS config I define some luks mappings, and define the corresponding filesystems with dependencies on the mapped devices, I get an error on 'guix system reconfigure'. Example: (operating-system ... (mapped-devices (list (mapped-device ... (target "root")))) (file-systems (list (file-system (mount-point "/") ... (dependencies mapped-devices)))) ...) This will yield an error like: file-system-/ depends on device-mapping-root, which is not provided by any service Funnily enough, one only needs to remove the 'dependencies' field to make it work. But this contradicts the example at: https://www.gnu.org/software/guix/manual/html_node/Using-the-Configuration-System.html Taylan --000000000000e246a5056ef1038e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
If in my OS config I define some luks mappings, and define= the
corresponding filesystems with dependencies on the mapped devices,<= br>I get an error on 'guix system reconfigure'.

Example:
=
=C2=A0 (operating-system
=C2=A0=C2=A0=C2=A0 ...
=C2=A0=C2=A0=C2= =A0 (mapped-devices
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (list (mapped-device = ... (target "root"))))
=C2=A0=C2=A0=C2=A0 (file-systems
=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 (list (file-system (mount-point "/")<= br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ..= .
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= (dependencies mapped-devices))))
=C2=A0=C2=A0=C2=A0 ...)

This wi= ll yield an error like:

=C2=A0 file-system-/ depends on device-mappi= ng-root, which is not
=C2=A0 provided by any service

Funnily enou= gh, one only needs to remove the 'dependencies' field to
make it= work.=C2=A0 But this contradicts the example at:

https://www.gnu.org/software/guix/manual/html_node/Using-the-Configur= ation-System.html


Taylan
--000000000000e246a5056ef1038e--