From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id BB3kOeELEGAJeQAA0tVLHw (envelope-from ) for ; Tue, 26 Jan 2021 12:32:33 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id YCYwNeELEGAmJQAAB5/wlQ (envelope-from ) for ; Tue, 26 Jan 2021 12:32:33 +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 32CD29404CA for ; Tue, 26 Jan 2021 12:32:30 +0000 (UTC) Received: from localhost ([::1]:59392 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l4NWG-0006JH-Qs for larch@yhetil.org; Tue, 26 Jan 2021 07:32:29 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:51148) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l4NVD-0006Ih-5C for guix-devel@gnu.org; Tue, 26 Jan 2021 07:31:23 -0500 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:46619) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l4NV5-0000T6-3o for guix-devel@gnu.org; Tue, 26 Jan 2021 07:31:22 -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 relay4-d.mail.gandi.net (Postfix) with ESMTPSA id CFB65E000F for ; Tue, 26 Jan 2021 12:31:07 +0000 (UTC) To: guix-devel@gnu.org From: Raghav Gururajan Subject: Possible bug in configuration-system? Message-ID: Date: Tue, 26 Jan 2021 07:31:05 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Icedove/78.6.1 MIME-Version: 1.0 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.196; envelope-from=rg@raghavgururajan.name; helo=relay4-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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=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: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: 0.15 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: 32CD29404CA X-Spam-Score: 0.15 X-Migadu-Scanner: scn1.migadu.com X-TUID: 1m+XrYdKQ41J Hello Guix! 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.