From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id aFoHE3k7OmLHtgAAgWs5BA (envelope-from ) for ; Tue, 22 Mar 2022 22:11:21 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 0JegC3k7OmIwgwAAG6o9tA (envelope-from ) for ; Tue, 22 Mar 2022 22:11:21 +0100 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 DD03723D45 for ; Tue, 22 Mar 2022 22:11:20 +0100 (CET) Received: from localhost ([::1]:39182 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nWlmh-0002cE-Ia for larch@yhetil.org; Tue, 22 Mar 2022 17:11:19 -0400 Received: from eggs.gnu.org ([209.51.188.92]:37024) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nWlmQ-0002bC-RC for bug-guix@gnu.org; Tue, 22 Mar 2022 17:11:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:48109) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nWlmP-000718-TZ for bug-guix@gnu.org; Tue, 22 Mar 2022 17:11:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nWlmP-00030v-NR for bug-guix@gnu.org; Tue, 22 Mar 2022 17:11:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#54528: STORE-DIRECTORY-PREFIX is global, per generation, to all bootloader menu entries Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 22 Mar 2022 21:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 54528 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 54528@debbugs.gnu.org X-Debbugs-Original-To: bug-guix Received: via spool by submit@debbugs.gnu.org id=B.164798343111546 (code B ref -1); Tue, 22 Mar 2022 21:11:01 +0000 Received: (at submit) by debbugs.gnu.org; 22 Mar 2022 21:10:31 +0000 Received: from localhost ([127.0.0.1]:42006 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nWllv-00030A-A5 for submit@debbugs.gnu.org; Tue, 22 Mar 2022 17:10:31 -0400 Received: from lists.gnu.org ([209.51.188.17]:44682) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nWllt-000300-KK for submit@debbugs.gnu.org; Tue, 22 Mar 2022 17:10:30 -0400 Received: from eggs.gnu.org ([209.51.188.92]:36866) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nWllt-0002OJ-Fc for bug-guix@gnu.org; Tue, 22 Mar 2022 17:10:29 -0400 Received: from [2607:f8b0:4864:20::729] (port=39544 helo=mail-qk1-x729.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nWllr-0006rB-SA for bug-guix@gnu.org; Tue, 22 Mar 2022 17:10:29 -0400 Received: by mail-qk1-x729.google.com with SMTP id b67so14983866qkc.6 for ; Tue, 22 Mar 2022 14:10:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:mime-version; bh=Gue3o+QUNdG5z0HMB9RDQUR11MWqmegEO/YM1tf6Ry8=; b=Wc7G5FemM9ZHnami83+ZhZNBW+b5Yvxw9pL+a9v3jqmUq1cjFBESmw7dy3+7/130jO SwhMHpBGHecjC6dbzGmQkA1ho8wBrIRIQDujjstdDJ2CXOT2XoSfztzUG3MjunZT34C+ 9LzG0pIQO9wsFqNnGIMD4pimxQ/4cAAfIVsilS204J7yGtSz841ieLFg9JfSyGJYqk36 YerfQv7/DsjFKposSOxOOXffWBXmk5KnEtQEn6/W6lza0KgzdEP201UAi/5Ir1SntVYQ kugoBbgq36YnmcXufeRbhR7lrnQhHy4j3Hx/lhimqCE90mXslBw9qYxYTv/pfaAOf4eI 4hUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=Gue3o+QUNdG5z0HMB9RDQUR11MWqmegEO/YM1tf6Ry8=; b=a+QhUrQ95ZfKS9rHqXvvARyoL/fUWKxASg8Mj9fhZZTN15XXVUS70vXkfy8I14XyqV V6Bo+Ot8K1NQyRjW2WOJi4pSEsLn9OgrLyv2usM5tzKrWxUpx4ovb4oUdfPXoUg1pa7e Z6ttSyQ7rClTfOf2pLfp0Zh1/uKJ6UwTttF7fWqYN6jo46RqHeVZorsFBD92ajTUzkw5 N2sK1m25F4BkfT99YBccuCU5Xndmy+rFBVpBg2Y75oL7jIUti/QY7dtOQ5BfL9q4VtYW Fb4MByI2RguuNn6+HNynfvwc1+/q7iNfbz12PI8ZDRaoohImIy1sbNNpYP8MI6G9l/yD EBNQ== X-Gm-Message-State: AOAM533LbqEn32cYzCkicYxABzdLU7subj1Pwrq5NAc9NQUxIs+ugWRx OezD1DoOzQ8w6oDERennwJydgTr/sHY= X-Google-Smtp-Source: ABdhPJy9Lf64spdn3YctSKhoS+p0k3HimQdTFfUtliK1ObDQk+/E8CUlZq2FqmE5uifyVepMF0QLRw== X-Received: by 2002:a05:620a:2848:b0:67d:35de:bb5b with SMTP id h8-20020a05620a284800b0067d35debb5bmr16497170qkp.499.1647983426452; Tue, 22 Mar 2022 14:10:26 -0700 (PDT) Received: from hurd (dsl-10-129-199.b2b2c.ca. [72.10.129.199]) by smtp.gmail.com with ESMTPSA id w1-20020ac857c1000000b002e1e899badesm14628592qta.72.2022.03.22.14.10.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Mar 2022 14:10:25 -0700 (PDT) From: Maxim Cournoyer Date: Tue, 22 Mar 2022 17:10:25 -0400 Message-ID: <87v8w51yny.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::729 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::729; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qk1-x729.google.com X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 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, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action 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: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1647983481; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=3XuCUgVX3NvAzbH3QcBfErhez923vULh4r7Fenrp7DE=; b=fkubRJohmUBsH0mGN5uX2tmpY5fylPBV4VZMXhDbjbZe9Ox6TBmrBt/TsKQYnXqp1JonWu sekuzjR9B/WnG6n02EVy36QHNIXA6RMKGn3rXWq8JhdtgnQlG03kOrTjh8tDR94E02zBDx Z+C5f+peC77lWHVM9YUypWvEhj5BVYj7gbKYMEl4u8vg9kFNGhsDNaPEnH1SSkRqaPySLM +j9dw8kNfA5fvKKdbzKrBeZMKI0l8/dZ4mpLG9bqwmbHGzOe10Yu9hJ/BExk894R7J+ZFS WeSJXaBZlFA4kZw9Z9mkhKf6+Iq/EaPNYMb0BvpBeDOVi3KuHpJswu2POBxtNw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1647983481; a=rsa-sha256; cv=none; b=LkLPWhBBEMO/9UofZy0WlJZJm9vql8nxi0PNNQp/twr5qrKqAAuU3vOZQAewQCfuMQ6Wws SSPpXjwwEQHfv1j3ZnTpWjS9T9ZHLHv8pjH2ytGZcweQyMOlHR1BrdvNJ203z30mM6hLT/ ztm3v+igI5YmVrSSuHyhCjeccNCAYx0ndYqC66bTYKGGeWuGs6gz7FY8fKd9qPs0FqBacZ ZBKjmIMn/WHrNxhQjF8AQzEAAdcsC5aBwjY5OcxO/KbtKIja+WTw/zAkreze65JsC7691K RFKXkUU3352YgebVGKB+7QxhVrUXaLyi/am95FguHs7DRRXylXY42U9TY5VAbQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20210112 header.b=Wc7G5Fem; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 3.49 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20210112 header.b=Wc7G5Fem; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: DD03723D45 X-Spam-Score: 3.49 X-Migadu-Scanner: scn0.migadu.com X-TUID: Rrk29o9SuIzm Hello Guix, Recently I noticed after reconfiguring with the following operating system definition: --8<---------------cut here---------------start------------->8--- (use-modules (gnu bootloader) (gnu bootloader grub) (gnu packages linux) (gnu system file-systems) (guix gexp) (sysadmin build-machines)) ;;; XXX: Copied from berlin-nodes.scm. (define %authorized-guix-keys ;; List of authorized 'guix archive' keys. (list (local-file "keys/guix/berlin.guixsd.org-export.pub"))) (define %btrfs-raid-uuid "64a837b7-b9dc-4b64-ba95-712ba4032c71") (define %common-btrfs-options '(("compress-force" . "zstd") ("space_cache" . "v2") "degraded")) ;;; Top-level Btrfs subvolume. (define %btrfs-pool (file-system (device (uuid %btrfs-raid-uuid)) (mount-point "/mnt/btrfs-pool") (create-mount-point? #t) (type "btrfs") (options (alist->file-system-options (cons '("subvolid" . "5") %common-btrfs-options))))) (define (btrfs-subvolume-mount name mount-point) "Return a file system to mount the Btrfs subvolume NAME at MOUNT-POINT." (file-system (device (uuid %btrfs-raid-uuid)) (mount-point mount-point) (create-mount-point? #t) (type "btrfs") (options (alist->file-system-options (cons (cons "subvol" name) %common-btrfs-options))))) (define node-129-os (let ((base-os (berlin-new-build-machine-os 129 #:authorized-guix-keys %authorized-guix-keys))) (operating-system (inherit base-os) (bootloader (bootloader-configuration (inherit (operating-system-bootloader base-os)) (bootloader grub-bootloader) (targets (list "/dev/sdb" "/dev/sdc" "/dev/sdd")) (menu-entries (list (menu-entry (label "Previous system -- 5.15.19 (#91, 2022-02-18 22:25)") (linux "/gnu/store/8w9v4dka10cv0r5fyw9f0pc14fszbl03-linux-libre-5.15.19/bzImage") (linux-arguments '("--root=my-root" "--system=/var/guix/profiles/system-92-link" "--load=/var/guix/profiles/system-92-link/boot" "console=tty0" "console=ttyS0,57600n8")) (initrd "/gnu/store/in2bcjh03kyv793v8bd3fizswyx1q0rq-raw-initrd/initrd.cpio.gz")))))) (file-systems (cons* (btrfs-subvolume-mount "@root" "/") (btrfs-subvolume-mount "@etc" "/etc") (btrfs-subvolume-mount "@home" "/home") (btrfs-subvolume-mount "@cache" "/var/cache") (btrfs-subvolume-mount "@log" "/var/log") (btrfs-subvolume-mount "@secrets" "/secrets") (btrfs-subvolume-mount "@srv" "/srv") %btrfs-pool %base-file-systems)) (packages (cons btrfs-progs (operating-system-packages base-os))) ;; FIXME: fix swap field. ))) node-129-os --8<---------------cut here---------------end--------------->8--- That the custom menu-entry object specified in the bootloader configuration would also result in a grub.cfg entry where the linux and initrd items would be prefixed with '/@root/' (the store directory prefix), which is not desired (this entry corresponds to another, previous system generation that didn't even use Btrfs). The problem is that the store-directory-prefix is globally applied to all menu entries corresponding to a specific generation (e.g., via the boot-parameters file); it seems like it should rather be preserved per menu-entry. Thanks, Maxim