From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id iIpfGiY3EGDnNAAA0tVLHw (envelope-from ) for ; Tue, 26 Jan 2021 15:37:10 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id vvxVFiY3EGAUeAAAbx9fmQ (envelope-from ) for ; Tue, 26 Jan 2021 15:37:10 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 02B449404DF for ; Tue, 26 Jan 2021 15:37:10 +0000 (UTC) Received: from localhost ([::1]:45570 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l4QOy-00037r-PV for larch@yhetil.org; Tue, 26 Jan 2021 10:37:08 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:35546) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l4QNs-00036U-I0 for guix-devel@gnu.org; Tue, 26 Jan 2021 10:36:01 -0500 Received: from relay5-d.mail.gandi.net ([217.70.183.197]:46307) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l4QNk-0006mV-5J for guix-devel@gnu.org; Tue, 26 Jan 2021 10:36:00 -0500 X-Originating-IP: 76.68.120.100 Received: from [192.168.5.10] (bras-vprn-toroon474rw-lp130-08-76-68-120-100.dsl.bell.ca [76.68.120.100]) (Authenticated sender: rg@raghavgururajan.name) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id 090B01C0005; Tue, 26 Jan 2021 15:35:45 +0000 (UTC) Subject: Re: Possible bug in configuration-system? From: Raghav Gururajan To: tsymsh@gmail.com References: Message-ID: <076e695c-aaaa-d523-ec59-f73df342ab5b@raghavgururajan.name> Date: Tue, 26 Jan 2021 10:35:43 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Icedove/78.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=217.70.183.197; envelope-from=rg@raghavgururajan.name; helo=relay5-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel@gnu.org Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -1.35 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: 02B449404DF X-Spam-Score: -1.35 X-Migadu-Scanner: scn0.migadu.com X-TUID: EKe7Oo4nJ1cg Hi Mikhail! I just noticed the commit https://git.savannah.gnu.org/cgit/guix.git/commit/?id=a9a2fdaabcc78e7a54d9a6bcfa4ee3de308e9a90. Do you have any clue regarding the following issue? > As mentioned in this page of manual > (http://guix.gnu.org/manual/en/html_node/Mapped-Devices.html), for > lvm-device-mapping, I did the following in my config.scm: > > ``` >  (mapped-devices >   (list >    (mapped-device >     (source >      (uuid "47bb32fe-da7f-4eb6-a11d-ae07a3a2e6f8")) >     (target "secondary") >     (type luks-device-mapping)) >    (mapped-device >     (source "secondary") >     (target (list "secondary-root" "secondary-home")) >     (type lvm-device-mapping)))) > ``` > > When I did `guix system reconfigure`, I got the following error: > > ``` > Backtrace: > In ice-9/boot-9.scm: >   1736:10 19 (with-exception-handler _ _ #:unwind? _ # _) >   1731:15 18 (with-exception-handler # …) > In guix/scripts/system.scm: >    1391:8 17 (_) > In guix/status.scm: >     780:4 16 (call-with-status-report _ _) > In guix/scripts/system.scm: >    1219:4 15 (_) > In ice-9/boot-9.scm: >   1736:10 14 (with-exception-handler _ _ #:unwind? _ # _) > In guix/store.scm: >    636:37 13 (thunk) >    1305:8 12 (call-with-build-handler # …) >   2062:24 11 (run-with-store # …) > In guix/scripts/system.scm: >   1243:15 10 (_ _) >     813:9  9 (perform-action reconfigure #< kerne…> …) > In gnu/system.scm: >   1312:26  8 (operating-system-bootcfg #< kernel:…> …) >    574:14  7 (operating-system-bootloader-crypto-devices #<) > In unknown file: >            6 (filter # …) > In gnu/system.scm: >    552:26  5 (_ _) >    528:17  4 (mapped-device-users #< source: "second…> …) > In srfi/srfi-1.scm: >    586:17  3 (map1 (("secondary-root" "secondary-home"))) > In unknown file: >            2 (string-append "/dev/mapper/" ("secondary-root" "seco…")) > In ice-9/boot-9.scm: >   1669:16  1 (raise-exception _ #:continuable? _) >   1669:16  0 (raise-exception _ #:continuable? _) > > ice-9/boot-9.scm:1669:16: In procedure raise-exception: > In procedure string-append: Wrong type (expecting string): > ("secondary-root" "secondary-home") > ``` > > When I do the following in my config.scm, system reconfigure works fine: > > ``` >  (mapped-devices >   (list >    (mapped-device >     (source >      (uuid "47bb32fe-da7f-4eb6-a11d-ae07a3a2e6f8")) >     (target "secondary") >     (type luks-device-mapping)) >    (mapped-device >     (source "secondary") >     (target "secondary-root") >     (type lvm-device-mapping)))) > ``` > > So seems like listing more than one target causes the error. Is this a bug? Regards, RG.