From unknown Tue Jun 24 05:10:21 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#25937 <25937@debbugs.gnu.org> To: bug#25937 <25937@debbugs.gnu.org> Subject: Status: luks mapped-devices does not support multiple mapped-devices Reply-To: bug#25937 <25937@debbugs.gnu.org> Date: Tue, 24 Jun 2025 12:10:21 +0000 retitle 25937 luks mapped-devices does not support multiple mapped-devices reassign 25937 guix submitter 25937 ng0 severity 25937 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 02 11:21:39 2017 Received: (at submit) by debbugs.gnu.org; 2 Mar 2017 16:21:39 +0000 Received: from localhost ([127.0.0.1]:36740 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cjTU3-00083d-EU for submit@debbugs.gnu.org; Thu, 02 Mar 2017 11:21:39 -0500 Received: from eggs.gnu.org ([208.118.235.92]:33315) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cjTU1-00083P-5P for submit@debbugs.gnu.org; Thu, 02 Mar 2017 11:21:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cjTTu-0006rf-VR for submit@debbugs.gnu.org; Thu, 02 Mar 2017 11:21:32 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:37909) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cjTTu-0006rR-SH for submit@debbugs.gnu.org; Thu, 02 Mar 2017 11:21:30 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52493) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cjTTt-0002mV-Hf for bug-guix@gnu.org; Thu, 02 Mar 2017 11:21:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cjTTp-0006ns-DU for bug-guix@gnu.org; Thu, 02 Mar 2017 11:21:29 -0500 Received: from perdizione.investici.org ([2001:41d0:2:33d0::19]:46872) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cjTTp-0006lT-3l for bug-guix@gnu.org; Thu, 02 Mar 2017 11:21:25 -0500 Received: from [94.23.50.208] (perdizione [94.23.50.208]) (Authenticated sender: niasterisk@grrlz.net) by localhost (Postfix) with ESMTPSA id D304712025E for ; Thu, 2 Mar 2017 16:21:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cryptolab.net; s=stigmate; t=1488471682; bh=sWBvCi2P2xs/ngBg2u+Pnz3N3hjB3DQ8VumT+/exsSQ=; h=Date:From:To:Subject; b=qrwFC19KUuKSbye5r4LLG1arg1dx6HZua+a+2Aha41IP+jPJev3KeeeuEbH3nEQ5F Z17VFCt28KzUEnj3vjUTYohq4My03uMSqiOm/pl1ZWN6zCNUgreFQNsFho4tNqASHe vbTtLIss3nK4p/8vJ4SZ55LelOwkBs9yXafSZnb8= Date: Thu, 2 Mar 2017 16:21:19 +0000 From: ng0 To: bug-guix@gnu.org Subject: luks mapped-devices does not support multiple mapped-devices Message-ID: <20170302162119.4bslxqwurdimb3xs@abyayala> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.1 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.1 (----) While I'm trying to solve this[0] issues, rekado suggested to either use a let or a define for the initial error I encountered. This lead to the system config which can be seen here: http://paste.lisp.org/display/340362#1 , still resulting in error: user@greendragon ~$ guix system build /etc/config.scm guix system: error: service 'file-system-/mnt/dg2' requires 'file-system-/', which is not provided by any service My guess is that mapped-devices does not consider cases where more than one luks-device is present. I haven't tried the final use-case yet which is bringing raid-mapped-devices in there, I expect this not to happen before this issue is fixed, to have isolated and not multiple causes of failure/errors. Should the lisp.org paste disappear I can append my system config, for now the paste is enough. 0: https://lists.gnu.org/archive/html/guix-devel/2017-03/msg00024.html From debbugs-submit-bounces@debbugs.gnu.org Sun May 03 12:39:58 2020 Received: (at 25937) by debbugs.gnu.org; 3 May 2020 16:39:59 +0000 Received: from localhost ([127.0.0.1]:57761 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jVHeo-0001O8-OH for submit@debbugs.gnu.org; Sun, 03 May 2020 12:39:58 -0400 Received: from mail-qt1-f182.google.com ([209.85.160.182]:38996) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jVHem-0001Nv-4j for 25937@debbugs.gnu.org; Sun, 03 May 2020 12:39:57 -0400 Received: by mail-qt1-f182.google.com with SMTP id o10so12036477qtr.6 for <25937@debbugs.gnu.org>; Sun, 03 May 2020 09:39:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=G6f3z9sna/SMEZgfeQhgJz8wXTO57XfYe9OSae5kln8=; b=j9OTE9XmgdWQEuFrl+gTDFtj1M/oHJK8CrbtdGM8E/VRCUmiJkZVCozPzmpq/drcXh XphHy2kNqn2QFkIP7CE7U2WHszorzHNidlDHDadCSvszmkW9Ier7hfmI4Dx3w/NNbqVu iZfyMSroChe+H9K2AbzsYJYnOz0PkSZEMwKh/ZKJAOaW8HgTDBG/RzRiMuZ8DO4bdD1T sevEniQPTX+pWw7t/BDZf3f2mRPfqjTc5boukMqc5bPWm2LQ76sIhzIyY60PJXfdRMvy TbYJH6OAhcsAFnHa8eeu4ZUo6CAUXXla519m8zq/BERU7OK50P6FmqPB54QYEDmQ6nnZ Tw0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=G6f3z9sna/SMEZgfeQhgJz8wXTO57XfYe9OSae5kln8=; b=M0EJf4GCGUb9Q3lPpZ9SMsLxl3PRUtrNZ8H3XDnVS3MS8k4VRHJI3PLycvuakRK9fz 9K0CbN2u+tK7wIxgROCnK0iFbzRmLGR8MHQhjubkWx1iFCBR1qkm0cRdUwqDIoECUdSj H2PRMLPCZ7Y6WftWRVJTT0DfRb6ilLsgL9LRcNLFN8/7PuEH0kkHDKCiF8N+ZFfOMKmN 198aKyagFo+sbxM6SfMAmROx1VRgYk07mh0eQ8dcFhkDmqyiW4ZjJubaItJlqqrpSeC5 8wCVGJbQRMr+SljrZUtsm1eT9q4N9F4y1M0TfdOG2jhW7F3eQIitupeYGAoKQYTIHpCD LjJQ== X-Gm-Message-State: AGi0PuYRYFSpi3l2oXUnX+rG1Y6xC3wp8P97X7wywlgD15Twd0oBhKEY s4H9lCx4QTMkXjE1eQTSOe47e9wdMIobQMw5Ys8= X-Google-Smtp-Source: APiQypI+nbjhkXhk6rhkOW/8YB2IPw3//kllDAtMNbAoG2tPx8XGpYEC1eZfpNs8VIJdqRFBRkTx+7MKLwW6IKZtcFU= X-Received: by 2002:ac8:4e0f:: with SMTP id c15mr12577349qtw.211.1588523990537; Sun, 03 May 2020 09:39:50 -0700 (PDT) MIME-Version: 1.0 From: zimoun Date: Sun, 3 May 2020 18:39:39 +0200 Message-ID: Subject: Bug#25937 Status? luks mapped-devices To: contact.ng0@cryptolab.net, 25937@debbugs.gnu.org Content-Type: text/plain; charset="UTF-8" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 25937 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Dear, Digging in the bug tracker, I found this bug report [1]. What is its status? Is it solved for you? Best regards, simon [1] https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25937 From debbugs-submit-bounces@debbugs.gnu.org Sun May 03 14:52:54 2020 Received: (at 25937) by debbugs.gnu.org; 3 May 2020 18:52:54 +0000 Received: from localhost ([127.0.0.1]:58029 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jVJjQ-0004tV-WA for submit@debbugs.gnu.org; Sun, 03 May 2020 14:52:53 -0400 Received: from mail-out1.in.tum.de ([131.159.0.8]:34769 helo=mail-out1.informatik.tu-muenchen.de) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jVHyq-00022d-DJ for 25937@debbugs.gnu.org; Sun, 03 May 2020 13:00:40 -0400 Received: from localhost (sam.net.in.tum.de [IPv6:2001:4ca0:2001:42:225:90ff:fe6b:d60]) by sam.net.in.tum.de (Postfix) with ESMTP id 28F131C00D2; Sun, 3 May 2020 19:05:21 +0200 (CEST) Date: Sun, 3 May 2020 19:00:29 +0200 From: Nikita Gillmann To: zimoun Subject: Re: Bug#25937 Status? luks mapped-devices Message-ID: <20200503170029.ofgqowuwajfhiqvj@hex> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Score: -1.7 (-) X-Debbugs-Envelope-To: 25937 X-Mailman-Approved-At: Sun, 03 May 2020 14:52:51 -0400 Cc: 25937@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.7 (--) Hi, zimoun transcribed 0.2K bytes: > Dear, > > Digging in the bug tracker, I found this bug report [1]. What is its status? > Is it solved for you? I have no idea, best to wait for someone using Guix System or Guix. I haven't touched it since 2019 and in late 2018 this bugreport was still relevant, I remember early 2019 it still being an issue. > Best regards, > simon > > [1] https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25937 From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 17 23:02:21 2021 Received: (at 25937-done) by debbugs.gnu.org; 18 Aug 2021 03:02:21 +0000 Received: from localhost ([127.0.0.1]:54504 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mGBqP-0004sa-8p for submit@debbugs.gnu.org; Tue, 17 Aug 2021 23:02:21 -0400 Received: from mail-qt1-f176.google.com ([209.85.160.176]:40501) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mGBqM-0004sK-6t for 25937-done@debbugs.gnu.org; Tue, 17 Aug 2021 23:02:20 -0400 Received: by mail-qt1-f176.google.com with SMTP id y9so474305qtv.7 for <25937-done@debbugs.gnu.org>; Tue, 17 Aug 2021 20:02:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=LyyzyARQxuqSuxt8be0Je1fJw2WcAIsell1C6C1erlI=; b=ViEZkqn6zrs2vp/3ODKDJB25Njy0qvTYnP0TfpsgF3JQ8yB/3dNjpvill5U5lg8m20 KTomSkyeso7oKZDlYNIlUaelCkUUlr10OgDCVpye43hc/UFJdU1e57RimHVybLpSeq5L 0zH0OZqzdNBLVNPPOZ0d7PnyXLWA8d/suPt6G2ycKRozOUNcZj4rjgQCBfsnAQBNROtK FyaHsejIM3jtAvPKHTE/qypzPlmeiNNzMCQQpyDKtpx2bVBzQAlhVEykhpVQJ7/0UfrK T6xf3rLK+LJ3zFhojzmMn8xjEfkQo0uckGXYj4/8p6sUmPTHQ9/VDB7bSbyKW8ke4dRb SP/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=LyyzyARQxuqSuxt8be0Je1fJw2WcAIsell1C6C1erlI=; b=mST2v+43wLIXIux8FnpjhxTbjTyfFxlM91td3WtCCcBd9HxhIHLaXa1S651UfFw14l jJKM1lQVTGbVBVFYPvyQa+iJEVesl1lsHzBXyy+sUHAsDDAKHwvP4XXt/QtkqySaFy7J RUZOwoRC35mrQrm5xNLUzMxsTNQVStusSt4cdnddSSRRt7rwheNhI9o+gJUGg1Ny4xGQ WqfMCXv+dg61NtOHVg2nIyGke5w9M1ZsVlbZmxO3deT3+olKz/prsww2w3LfUvVWqtua Evj8I9hET5zCwhmPbzP3xOUEpdhzX1P5PJODhyldb4VMdftVHujeqJeM52l6xQI9ISWo K40A== X-Gm-Message-State: AOAM530QMulzxMqOHYo7FRdFNiBiWtOAwY+IOFbXsoiz+yg3vgOyLWVA F1qcrztzXm8767ngQUr5+6obiUI71ek= X-Google-Smtp-Source: ABdhPJy4vf3jV/+xGA4A8VeAhV0BvaROT0fTT27UL1k9A6WBpJu+FcBTYAShPy1bqb9IvoYIsELAdg== X-Received: by 2002:ac8:7cb4:: with SMTP id z20mr4558852qtv.336.1629255732482; Tue, 17 Aug 2021 20:02:12 -0700 (PDT) Received: from hurd (dsl-236-123-187.b2b2c.ca. [207.236.123.187]) by smtp.gmail.com with ESMTPSA id 141sm2862510qkn.10.2021.08.17.20.02.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Aug 2021 20:02:12 -0700 (PDT) From: Maxim Cournoyer To: zimoun Subject: Re: bug#25937: luks mapped-devices does not support multiple mapped-devices References: <20170302162119.4bslxqwurdimb3xs@abyayala> Date: Tue, 17 Aug 2021 23:02:11 -0400 In-Reply-To: (zimoun's message of "Sun, 3 May 2020 18:39:39 +0200") Message-ID: <871r6rxxos.fsf_-_@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 25937-done Cc: 25937-done@debbugs.gnu.org, contact.ng0@cryptolab.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hello, zimoun writes: > Dear, > > Digging in the bug tracker, I found this bug report [1]. What is its stat= us? > Is it solved for you? > > Best regards, > simon > > [1] https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D25937 Recopying the content here for ease of reference: > upon trying to create a system with multiple mapped-devices the > current documentation about mapped-devices doesn't help me anymore. > So far I'm just trying with two luks devices, I'll get RAID in there as > a third device later. > So this part in a config.scm: > (mapped-devices > (list (mapped-device > (source (uuid "fooooo1233333333333333333")) > (target "my-root") > (type luks-device-mapping)) > (mapped-device > (source (uuid "fooooo124444444444444444")) > (target "dg2") > (type luks-device-mapping)))) > (file-systems (cons* (file-system > (device "my-root") > (title 'label) > (mount-point "/") > (type "ext4") > (dependencies mapped-devices)) > (file-system > (device "/dev/sdb1") > (title 'device) > (mount-point "/mnt/dg1") > (type "ext4")) > (file-system > (device "dg2") > (title 'label) > (mount-point "/mnt/dg2") > (type "ext4") > (dependencies mapped-devices)) > %base-file-systems)) > > ...fails with this error: > address@hidden ~$ guix system build /etc/config.scm > guix system: error: service 'file-system-/mnt/dg2' requires > 'device-mapping-my-root', which is not provided by any service > How do I fix this? >From info "(guix)File Systems": When the source of a file system is a mapped device (*note Mapped Devices::), its =E2=80=98device=E2=80=99 field _must_ refer to = the mapped device name=E2=80=94e.g., =E2=80=98"/dev/mapper/root-partition"= =E2=80=99. This is required so that the system knows that mounting the file system depends on having the corresponding device mapping established. So it seems that you must provide "/dev/mapper/my-root" instead of referring to it by label. Although, I was able to reconfigure with the following mapped devices/file systems: --8<---------------cut here---------------start------------->8--- (mapped-devices (list (mapped-device (source (uuid "0792432c-78d8-4dcc-87c5-30200c3d02db");"/dev/sda= 2" ) (target "cryptroot") (type luks-device-mapping)) (mapped-device (source (uuid "a9aead40-9d01-4f7a-bb83-be70dd192b7b");"/dev/sdb= 2" ) (target "cryptroot-mirror") (type luks-device-mapping)) (mapped-device (source (uuid "f0afd5c9-da70-46a7-9c6f-5d22913638bf");"/dev/sdc= 2" ) (target "cryptroot-mirror2") (type luks-device-mapping)))) ;; Note: Using any of the LUKS encrypted drives exposed under ;; /dev/mapper is enough to reference the Btrfs RAID-1 array, ;; since the 'btrfs device scan' command is executed in the init ;; RAM disk and takes care of assembling the array. (file-systems (cons* (file-system (mount-point "/") (device (file-system-label "my-root")) (type "btrfs") (options (alist->file-system-options (cons '("subvol" . "@root") %common-btrfs-options))) (dependencies mapped-devices)) (file-system (device "/dev/mapper/cryptroot-mirror") (mount-point "/home") (type "btrfs") (options (alist->file-system-options (cons '("subvol" . "@home") %common-btrfs-options))) (dependencies mapped-devices)) (file-system (device "/dev/mapper/cryptroot-mirror2") (mount-point "/data") (type "btrfs") (options (alist->file-system-options (cons '("subvol" . "@data") %common-btrfs-options))) (dependencies mapped-devices)) %base-file-systems)) --8<---------------cut here---------------end--------------->8--- =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 So perhaps that particular limitation has been lifted, or perhaps Btrfs is different in this regard. I'll close the bug, but feel free to reopen it if you still have problems. Thank you, Maxim From unknown Tue Jun 24 05:10:21 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 15 Sep 2021 11:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator