From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id aB8NJXB4HGF0VwAAgWs5BA (envelope-from ) for ; Wed, 18 Aug 2021 05:03:12 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id oGHTIHB4HGE3RAAA1q6Kng (envelope-from ) for ; Wed, 18 Aug 2021 03:03: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 9153114D2C for ; Wed, 18 Aug 2021 05:03:11 +0200 (CEST) Received: from localhost ([::1]:58682 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mGBrC-00076I-MJ for larch@yhetil.org; Tue, 17 Aug 2021 23:03:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40910) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mGBr4-00074o-Ls for bug-guix@gnu.org; Tue, 17 Aug 2021 23:03:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42960) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mGBr4-0004lX-DY for bug-guix@gnu.org; Tue, 17 Aug 2021 23:03:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mGBr4-0004tZ-AP for bug-guix@gnu.org; Tue, 17 Aug 2021 23:03:02 -0400 Subject: bug#25937: luks mapped-devices does not support multiple mapped-devices Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Date: Wed, 18 Aug 2021 03:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 25937 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: zimoun Mail-Followup-To: 25937@debbugs.gnu.org, maxim.cournoyer@gmail.com, contact.ng0@cryptolab.net Received: via spool by 25937-done@debbugs.gnu.org id=D25937.162925574118764 (code D ref 25937); Wed, 18 Aug 2021 03:03:02 +0000 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 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: contact.ng0@cryptolab.net, 25937-done@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1629255791; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-to: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=LyyzyARQxuqSuxt8be0Je1fJw2WcAIsell1C6C1erlI=; b=FpfniRqABfctaigIrk8d8tDXJdmnMs30JcKXxKn0dJ5rLHlJw8W6TE43y4gJy5LXIo2UzF m3+G7w1HBbnGgxj9+Piew3np3UaH+GctJIVWMLwyAQNUQ/4x4wl/2Frr+TPDDuVLmqH55K PXvgFtghhWwr8Pz0YEMAIl9ujmMAUPJTMc6ly4+W2oBmbzh2rUT77NhU6RO/5Jj+DN4gzO EG5JZwlEj2SNW3wDOPKOWMuf/WedEb8bmG5ikuDgelI6WZZ16xiZI4t8YiGG0gNY4DtKqE ul7kJenbRx5hFoK3132Crq8KxUz1S55D6qBBmVuJCGySu3bM+ULYNRh0nxXegg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1629255791; a=rsa-sha256; cv=none; b=oPO3uC2y4TN6Z5D7zT4/Fhk+JOojuEbf99Ua/ZAPUJH4qgiiF6oAzC5HKLgdxVKLIt+pn9 QV5KBMzQXoPHK0ZP+NraHVGEhlcBXLTDPu7hvCJY4zpptOo0FVxzwMojAN7mALTYIGbQWe r2HimoFGVP3/TVcq9n1rEz2rl/zU5lnFMBNZ3J1pDkF4ZVJir5UNw6onqTgQ5+sJl/Qij+ dmYeXbLP/J7QEwLjVvFwd7U3/pT2u7CNcLK+3xL29wT++oenXy0+XlFWNagB8imBD1omAZ pfuk1RsKr9tuQC883qUSUT2NLZ5jMKmhrHaVOyOi0w/G+ATADFWdtOVPO59GQw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=ViEZkqn6; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -1.32 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=ViEZkqn6; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 9153114D2C X-Spam-Score: -1.32 X-Migadu-Scanner: scn0.migadu.com X-TUID: sM9OxImfZdDl 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