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 WGofCgxEEGDsQAAA0tVLHw (envelope-from ) for ; Tue, 26 Jan 2021 16:32:12 +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 4CLeBQxEEGBaHwAAbx9fmQ (envelope-from ) for ; Tue, 26 Jan 2021 16:32:12 +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 B4EA694029C for ; Tue, 26 Jan 2021 16:32:11 +0000 (UTC) Received: from localhost ([::1]:35586 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l4RGE-00053j-GY for larch@yhetil.org; Tue, 26 Jan 2021 11:32:10 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:47714) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l4QzP-0004Fh-Ni for guix-devel@gnu.org; Tue, 26 Jan 2021 11:14:47 -0500 Received: from mail-lj1-x231.google.com ([2a00:1450:4864:20::231]:38061) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l4QzN-0004bt-R2 for guix-devel@gnu.org; Tue, 26 Jan 2021 11:14:47 -0500 Received: by mail-lj1-x231.google.com with SMTP id f19so11359969ljn.5 for ; Tue, 26 Jan 2021 08:14:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=Ipd4xk36WSFpFDfBICn6260/M7X61vp/H08+bP8eQmI=; b=bqs6AD6yZtrnTZSEPlFwpmSrNPxKE0SWHynDsI0MPBOSTfak6XD8lzawn0yLgHl+h8 vUcKd3wPVsuWt/G7+XHJW5XjKqOJdzzCFTSQcMeBjKilUfCWcDunJ02lZkbuGhCnK5VM i7G4VIVOaK81fmphfiSk8L8IWJehvrhaCFFTC+qsESJmnKHm5p7uZuUMThR2Jvn3pnfw kOyownNvIfDFHgs51J/yFts9G5xmZjXqLgaHxR2Ur8W1xXy5Ej+Vufh8dDVow/q1j47B HbPCRAykOlEK6r2Xsomnehzz0x5gAnda7d1Z6eW3epFFqBQRxhqS0tw/DVOls4A4bV54 gG2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=Ipd4xk36WSFpFDfBICn6260/M7X61vp/H08+bP8eQmI=; b=KlFuWwugt6Exv0Z6YzK0poYJxwnWUB/QrLLmEmHprdaHd2MxMP3Ml2nzCaWLyBuSgi jM24ABGExq2oiOx4CPlAdmG/h7tVxZKtsXcDRgR9shnMCYlGc3Pv34qaja3ZTqltRJ12 H11LAw9yfFHJguR4cDZfuOFx0iTTP1du9Q/Ry7n1FiIjB7PPATtcjAFsVdGZDtvf3z6Y EINddQkDJWmh9B+Ip9Jp5D1s8dZvP9eTspGVg4szEqGM/dpziCP97KAS7+pNv+sG+IzB AUi1cvdIlCIaGpKKYwnaNc/j8krZnOPGxSH85GIeYlkBnT1ic3c89c9PQuJQHG4/ILj/ AjvA== X-Gm-Message-State: AOAM531spLjVbzJajPBX+J+6Idr1J7A+UvtG0vCNBGg/uXggWGlpOfAZ yCEPnrzkSMyZmMyPDzEryWFXXkLfbhk= X-Google-Smtp-Source: ABdhPJxrBYkii+iq8klPLnbJOsTtu6eP0jL6IPPCKN5fUQpM0+k9IzbrygEgR3RkGMcgnqP5AJj0LA== X-Received: by 2002:a2e:9218:: with SMTP id k24mr3207548ljg.195.1611677683351; Tue, 26 Jan 2021 08:14:43 -0800 (PST) Received: from [192.168.0.103] ([89.148.255.184]) by smtp.gmail.com with ESMTPSA id l6sm2127098lje.6.2021.01.26.08.14.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 26 Jan 2021 08:14:42 -0800 (PST) Subject: Re: Possible bug in configuration-system? To: Raghav Gururajan References: <076e695c-aaaa-d523-ec59-f73df342ab5b@raghavgururajan.name> From: Mikhail Tsykalov Message-ID: <67d56589-98f9-4c2c-96fe-f93dd5466ee7@gmail.com> Date: Tue, 26 Jan 2021 21:14:40 +0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 In-Reply-To: <076e695c-aaaa-d523-ec59-f73df342ab5b@raghavgururajan.name> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Received-SPF: pass client-ip=2a00:1450:4864:20::231; envelope-from=tsymsh@gmail.com; helo=mail-lj1-x231.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Tue, 26 Jan 2021 11:31:25 -0500 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: -2.05 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=bqs6AD6y; dmarc=pass (policy=none) header.from=gmail.com; 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: B4EA694029C X-Spam-Score: -2.05 X-Migadu-Scanner: scn1.migadu.com X-TUID: d2RXYqu9lxkR Hi Raghav, Example in the manual is wrong, it should say 'targets' instead of 'target'. Regards, Mikhail. On 26.01.2021 20:35, Raghav Gururajan wrote: > 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 #> ic…> …) >> 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 #> g…> …) >>    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 #> gnu/system.scm:551…> …) >> 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.