From unknown Mon Aug 18 18:13:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#29312: GRUB with multiple partitions with identical bzImage Resent-From: Vagrant Cascadian Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 16 Nov 2017 00:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 29312 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 29312@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.15107925707707 (code B ref -1); Thu, 16 Nov 2017 00:37:02 +0000 Received: (at submit) by debbugs.gnu.org; 16 Nov 2017 00:36:10 +0000 Received: from localhost ([127.0.0.1]:42342 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eF8A6-00020E-3Y for submit@debbugs.gnu.org; Wed, 15 Nov 2017 19:36:10 -0500 Received: from eggs.gnu.org ([208.118.235.92]:39271) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eF7F1-00078b-Jn for submit@debbugs.gnu.org; Wed, 15 Nov 2017 18:37:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eF7Ev-00073j-EP for submit@debbugs.gnu.org; Wed, 15 Nov 2017 18:37:06 -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 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:42351) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eF7Ev-00073Z-An for submit@debbugs.gnu.org; Wed, 15 Nov 2017 18:37:05 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58458) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eF7Eu-0000oi-55 for bug-guix@gnu.org; Wed, 15 Nov 2017 18:37:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eF7Er-0006xf-1x for bug-guix@gnu.org; Wed, 15 Nov 2017 18:37:04 -0500 Received: from cascadia.aikidev.net ([173.255.214.101]:55711) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eF7Eq-0006tr-Oo for bug-guix@gnu.org; Wed, 15 Nov 2017 18:37:00 -0500 Received: from localhost (unknown [IPv6:2600:3c01:e000:21:21:21:0:100b]) (Authenticated sender: vagrant@cascadia.debian.net) by cascadia.aikidev.net (Postfix) with ESMTPSA id 4DE3E1AA2C for ; Wed, 15 Nov 2017 15:36:55 -0800 (PST) From: Vagrant Cascadian Date: Wed, 15 Nov 2017 15:36:11 -0800 Message-ID: <87mv3n2jys.fsf@aikidev.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" 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: -5.0 (-----) X-Mailman-Approved-At: Wed, 15 Nov 2017 19:36:07 -0500 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: -5.0 (-----) --=-=-= Content-Type: text/plain I've been exploring GuixSD for the past few days. Very cool! Even if a little rough around the edges... Ran into an ugly problem with GRUB being unable to load the initrd, due to having multiple GuixSD installs on the same machine, with identical paths for the bzImage files, but not identical paths for initrd files... Confusingly, when I loaded the kernel+initrd by hand from the grub commandline, it would work! But that was because I was specifying which device to load from... With some help from the folks on #grub on freenode (Thanks to TJ- and Jordan_U!), we identified it was an issue with the way GRUB was configured to search for files: menuentry "GNU with Linux-Libre 4.13.12 (beta)" { search --file --set /gnu/store/q9q8y9rh3jw1qcx6bic1v18qag80z74a-linux-libre-4.13.12/bzImage linux /gnu/store/q9q8y9rh3jw1qcx6bic1v18qag80z74a-linux-libre-4.13.12/bzImage \ --root=/dev/mapper/cryptic \ --system=/gnu/store/bsxnm36vvx2wxc9h3q5l8b5286gw75hr-system \ --load=/gnu/store/bsxnm36vvx2wxc9h3q5l8b5286gw75hr-system/boot \ initrd /gnu/store/7w9dzb6b9vb9gzj61zyqsg4zg6ys4hgb-raw-initrd/initrd } I had two partitions, one on (hd0,msdos4) and one on (crypto0) which both contained /gnu/store/q9q8y9rh3jw1qcx6bic1v18qag80z74a-linux-libre-4.13.12/bzImage, and the search command was returning the one on (hd0,msdos4), and thus setting root (hd0,msdos4). Unfortunately, /gnu/store/7w9dzb6b9vb9gzj61zyqsg4zg6ys4hgb-raw-initrd/initrd was only present on the (crypto0) partition. So, when it booted, I would get the confusing error message: error: file `/gnu/store/7w9dzb6b9vb9gzj61zyqsg4zg6ys4hgb-raw-initrd/initrd' not found And then a kernel panic, as there was no initrd... The suggestion from the #grub folks was to use a UUID or some other more reliable method of finding the correct device to load the kernel and initrd files from. A quick workaround might be to also add a search line for the initrd after loading the kernel: menuentry "GNU with Linux-Libre 4.13.12 (beta)" { search --file --set /gnu/store/q9q8y9rh3jw1qcx6bic1v18qag80z74a-linux-libre-4.13.12/bzImage linux /gnu/store/q9q8y9rh3jw1qcx6bic1v18qag80z74a-linux-libre-4.13.12/bzImage \ --root=/dev/mapper/cryptic \ --system=/gnu/store/bsxnm36vvx2wxc9h3q5l8b5286gw75hr-system \ --load=/gnu/store/bsxnm36vvx2wxc9h3q5l8b5286gw75hr-system/boot \ search --file --set /gnu/store/7w9dzb6b9vb9gzj61zyqsg4zg6ys4hgb-raw-initrd/initrd initrd /gnu/store/7w9dzb6b9vb9gzj61zyqsg4zg6ys4hgb-raw-initrd/initrd } I'm not sure this is the best approach, as it could potentially load kernel+initrd from an untrusted filesystem which may contain a malicious kernel or initrd that simply matches the file paths... I'll look into a proper solution at some point, but it'd be fine if someone beats me to it! live well, vagrant --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEcDardHbDotegGFCHt4uC1IFLkbYFAloMz2sACgkQt4uC1IFL kbbm8g/9Fn2e9lel8TInwxoGwWc/x3nW6Djj3WA09OaQ6vuGM6MiEbCPHXP+aY9O Tm4/8URZ+S5h5Yt+ybkmJfO6sVyRxC+/2QiVOnfsHuAgFgSR5Ev97XpGNEF5Se7F mJ7SL2v+dpiHI823EkvOp4GOuDG4OnvdMQyDs35WY3kqQPOpWDdK34sFLCOSLeby mPuwqPEnzTqnYVQhd4fZgqyBEr4jeSJNZAuVE9AbXYVYNqaiHSTr0czUTj0ZXdz/ xa+3ldcuGE6sWFvnEPzSw2zjMndrxNKwTewvmHKjFzztt8mEdEht0B0TqvAz6bxw 2SGR7OrG7STuC9jHoGAJiYCJKhmECLKxdvZnIXwfb//LoFGX1Yk4fkGAYbX4RCN7 MQdvyM4mv9ok0et4m5IauDBH9mE6D+wY8GEDbWgazBnK8GFGqNbABE5XKIaB1vNm S+yxIsx9+Oi35hmGDASSukPhDAQvNRKxPgqkhBNgigWrbSGQjc3TdMJTwoRN8pKo 0UBCmWDlLD5GqgGoqALnpeugqPt1ojMo42HqYC099fdFvpsdS2YDXLC/iTonL/B3 8tGQSaRCPOvjZRgVTf7XsnJLcnMB8hXsgh//WqpKs598Ls2RMz97fZVU3rFficyd imI5+oftFcSay9obBo4QiKT74xcopMHPIFh+gx2gZLJ299PbQ/o= =mYEj -----END PGP SIGNATURE----- --=-=-=-- From unknown Mon Aug 18 18:13:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#29312: GRUB with multiple partitions with identical bzImage Resent-From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 16 Nov 2017 14:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29312 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Vagrant Cascadian Cc: 29312@debbugs.gnu.org Received: via spool by 29312-submit@debbugs.gnu.org id=B29312.15108426282209 (code B ref 29312); Thu, 16 Nov 2017 14:31:02 +0000 Received: (at 29312) by debbugs.gnu.org; 16 Nov 2017 14:30:28 +0000 Received: from localhost ([127.0.0.1]:42758 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eFLBT-0000ZZ-Kn for submit@debbugs.gnu.org; Thu, 16 Nov 2017 09:30:27 -0500 Received: from hera.aquilenet.fr ([141.255.128.1]:46011) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eFLBQ-0000ZP-VO for 29312@debbugs.gnu.org; Thu, 16 Nov 2017 09:30:25 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id E454FF8FC; Thu, 16 Nov 2017 15:30:25 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6D3vLh747IFT; Thu, 16 Nov 2017 15:30:25 +0100 (CET) Received: from ribbon (unknown [193.50.110.175]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 14677F14E; Thu, 16 Nov 2017 15:30:25 +0100 (CET) From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) References: <87mv3n2jys.fsf@aikidev.net> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 26 Brumaire an 226 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Thu, 16 Nov 2017 15:30:22 +0100 In-Reply-To: <87mv3n2jys.fsf@aikidev.net> (Vagrant Cascadian's message of "Wed, 15 Nov 2017 15:36:11 -0800") Message-ID: <87a7zmfg8x.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 1.0 (+) 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 (+) Hey Vagrant, Vagrant Cascadian skribis: > menuentry "GNU with Linux-Libre 4.13.12 (beta)" { > search --file --set /gnu/store/q9q8y9rh3jw1qcx6bic1v18qag80z74a-linux= -libre-4.13.12/bzImage > linux /gnu/store/q9q8y9rh3jw1qcx6bic1v18qag80z74a-linux-libre-4.13.12= /bzImage \ > --root=3D/dev/mapper/cryptic \ > --system=3D/gnu/store/bsxnm36vvx2wxc9h3q5l8b5286gw75hr-system \ > --load=3D/gnu/store/bsxnm36vvx2wxc9h3q5l8b5286gw75hr-system/boo= t \ > initrd /gnu/store/7w9dzb6b9vb9gzj61zyqsg4zg6ys4hgb-raw-initrd/initrd > } > > I had two partitions, one on (hd0,msdos4) and one on (crypto0) which > both contained > /gnu/store/q9q8y9rh3jw1qcx6bic1v18qag80z74a-linux-libre-4.13.12/bzImage, > and the search command was returning the one on (hd0,msdos4), and thus > setting root (hd0,msdos4). Oh. > Unfortunately, > /gnu/store/7w9dzb6b9vb9gzj61zyqsg4zg6ys4hgb-raw-initrd/initrd was only > present on the (crypto0) partition. > > So, when it booted, I would get the confusing error message: > > error: file `/gnu/store/7w9dzb6b9vb9gzj61zyqsg4zg6ys4hgb-raw-initrd/ini= trd' not found > > And then a kernel panic, as there was no initrd... > > > The suggestion from the #grub folks was to use a UUID or some other more > reliable method of finding the correct device to load the kernel and > initrd files from. Indeed. You can force GuixSD to use a file system label or a UUID by declaring your file system with a label/UUID. So you would write: (file-system ;; =E2=80=A6 (mount-point "/") (title 'uuid) (device (uuid "f549617a-07b0-430a-9723-36c43b98c748"))) or: (file-system ;; =E2=80=A6 (mount-point "/") (title 'label) (device "my-root")) When you do that, the generated grub.cfg searches the file system by label/UUID, which should be more reliable as you write. Would that work for you? > A quick workaround might be to also add a search line for the initrd > after loading the kernel: > > menuentry "GNU with Linux-Libre 4.13.12 (beta)" { > search --file --set /gnu/store/q9q8y9rh3jw1qcx6bic1v18qag80z74a-linux= -libre-4.13.12/bzImage > linux /gnu/store/q9q8y9rh3jw1qcx6bic1v18qag80z74a-linux-libre-4.13.12= /bzImage \ > --root=3D/dev/mapper/cryptic \ > --system=3D/gnu/store/bsxnm36vvx2wxc9h3q5l8b5286gw75hr-system \ > --load=3D/gnu/store/bsxnm36vvx2wxc9h3q5l8b5286gw75hr-system/boo= t \ > search --file --set /gnu/store/7w9dzb6b9vb9gzj61zyqsg4zg6ys4hgb-raw-i= nitrd/initrd > initrd /gnu/store/7w9dzb6b9vb9gzj61zyqsg4zg6ys4hgb-raw-initrd/initrd > } The assumption is that there=E2=80=99s only one /gnu/store that matters and= that it contains both the kernel and the initrd. So I think the real solution is for the first =E2=80=98search=E2=80=99 command to be appropriat= e. Thanks for your report! Ludo=E2=80=99. From unknown Mon Aug 18 18:13:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#29312: GRUB with multiple partitions with identical bzImage Resent-From: Vagrant Cascadian Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 16 Nov 2017 16:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29312 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 29312@debbugs.gnu.org Received: via spool by 29312-submit@debbugs.gnu.org id=B29312.151084883312459 (code B ref 29312); Thu, 16 Nov 2017 16:14:01 +0000 Received: (at 29312) by debbugs.gnu.org; 16 Nov 2017 16:13:53 +0000 Received: from localhost ([127.0.0.1]:43756 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eFMnY-0003Et-NH for submit@debbugs.gnu.org; Thu, 16 Nov 2017 11:13:52 -0500 Received: from cascadia.aikidev.net ([173.255.214.101]:39728) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eFMnX-0003Eg-20 for 29312@debbugs.gnu.org; Thu, 16 Nov 2017 11:13:51 -0500 Received: from localhost (unknown [IPv6:2600:3c01:e000:21:21:21:0:100b]) (Authenticated sender: vagrant@cascadia.debian.net) by cascadia.aikidev.net (Postfix) with ESMTPSA id 18B951AA2C; Thu, 16 Nov 2017 08:13:44 -0800 (PST) From: Vagrant Cascadian In-Reply-To: <87a7zmfg8x.fsf@gnu.org> References: <87mv3n2jys.fsf@aikidev.net> <87a7zmfg8x.fsf@gnu.org> Date: Thu, 16 Nov 2017 08:13:05 -0800 Message-ID: <87k1yq2odq.fsf@aikidev.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: 0.0 (/) 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: 0.0 (/) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 2017-11-16, Ludovic Court=C3=A8s wrote: > Vagrant Cascadian skribis: > Indeed. You can force GuixSD to use a file system label or a UUID by > declaring your file system with a label/UUID. So you would write: > > (file-system > ;; =E2=80=A6 > (mount-point "/") > (title 'uuid) > (device (uuid "f549617a-07b0-430a-9723-36c43b98c748"))) Yes, this fixed it for me! > or: > > (file-system > ;; =E2=80=A6 > (mount-point "/") > (title 'label) > (device "my-root")) > > When you do that, the generated grub.cfg searches the file system by > label/UUID, which should be more reliable as you write. > > Would that work for you? Using UUID worked; didn't test using a label, but I imagine it would also resolve the issue. >> A quick workaround might be to also add a search line for the initrd >> after loading the kernel: ... > The assumption is that there=E2=80=99s only one /gnu/store that matters a= nd that > it contains both the kernel and the initrd. So I think the real > solution is for the first =E2=80=98search=E2=80=99 command to be appropri= ate. Agreed. For the record, spelling it out, apparently the issue wasn't searching in each menu entry, but: # Set 'root' to the partition that contains /gnu/store. search --file --set /gnu/store/0lwyzz8ayixwvdm1b3xhh26mlh0jz36b-grub-2.02= /share/grub/unicode.pf2 Where it set the initial root. After updating to mount by UUID, the corresponding search line became: search --fs-uuid --set 1234ab-cdef-...1234ab So it then only loaded files from the appropriate filesystem. Since this is an issue caused by configuration, perhaps the documentation could clarify the importance of using UUID or filesystem labels rather than raw devices: https://www.gnu.org/software/guix/manual/html_node/Proceeding-with-the-In= stallation.html#Proceeding-with-the-Installation I guess all of the install examples use labels: http://git.savannah.gnu.org/cgit/guix.git/tree/gnu/system/examples/ And I'm not sure how many people have multiple GuixSD installs on their systems, so perhaps it's just me putting myself into a corner case. :) > Thanks for your report! Thanks for the prompt response and solution! live well, vagrant --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEcDardHbDotegGFCHt4uC1IFLkbYFAloNuREACgkQt4uC1IFL kbYpuQ//UEFt1S65YVLfzDNoL4TauCFeio9tgm8S+gzP6VKk3Kz+QKHD87JrP2hE r0MQ8ubucrfmuVQDEC9Ncu+KwVeuikZVzcUoNIKDRa3GwRe1U+Hy3AStlti8BB38 Ki0iV9jKqURjtVgU4hZB/D+15ketXDMJdqdF0WB+AzBePFfnrDmk2TdJnvG9aOFD DT8rK0iU0nSyfW4C8vy4dDfnAfxfYsHquHOGoJQYSo6mnTVTirB/U86qS81gHtLv NbwPVJGFFVhK/wYsqPCrbRPguos8QxWfxHDzVI9arZpOmkdm4V5kXlQ649GVM/f2 468jhpAl0AsObAI0JvvCXbwHXI3MzWRvHyY8kunmvRjVbn4iekg6Ddcr5ol6PYPs e6UpAH43cF6cgGnwR6wE5i34LW2aIrsP/6O7JMtucOrBTlt20QMuaAyyrdY1dDg2 zi7yykAhE2wX9ujFkCinJI/SpxdusnX1p+3J5lvALz8mS4KPHTFeGg8ZJGu67CGX OHsv36aV0X+SPT62GVY2zAXhbHriX199GBbERX6RQ47A3LckxlyNBm+oaISF5OAv 92XflBYVsEk+gxhuCx4zZNSrOxX2rC+gTygWfhAb05Dpo28nUBQR/+15OktriNnR sKijsw00XE3c1EuI5juzZcS9zqaV4VSNvEBZmJnc3jVeVPF4CDQ= =hhj3 -----END PGP SIGNATURE----- --=-=-=-- From unknown Mon Aug 18 18:13:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#29312: GRUB with multiple partitions with identical bzImage Resent-From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 16 Nov 2017 21:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29312 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Vagrant Cascadian Cc: 29312@debbugs.gnu.org Received: via spool by 29312-submit@debbugs.gnu.org id=B29312.151086901018421 (code B ref 29312); Thu, 16 Nov 2017 21:51:01 +0000 Received: (at 29312) by debbugs.gnu.org; 16 Nov 2017 21:50:10 +0000 Received: from localhost ([127.0.0.1]:43958 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eFS2z-0004n3-Qo for submit@debbugs.gnu.org; Thu, 16 Nov 2017 16:50:10 -0500 Received: from hera.aquilenet.fr ([141.255.128.1]:46787) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eFS2v-0004ms-NO for 29312@debbugs.gnu.org; Thu, 16 Nov 2017 16:50:06 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 60ADCF129; Thu, 16 Nov 2017 22:50:06 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3t6kEjAWDN4X; Thu, 16 Nov 2017 22:50:04 +0100 (CET) Received: from ribbon (unknown [IPv6:2a01:e0a:1d:7270:af76:b9b:ca24:c465]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 0E9ABBA2F; Thu, 16 Nov 2017 22:50:03 +0100 (CET) From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) References: <87mv3n2jys.fsf@aikidev.net> <87a7zmfg8x.fsf@gnu.org> <87k1yq2odq.fsf@aikidev.net> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 26 Brumaire an 226 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Thu, 16 Nov 2017 22:50:00 +0100 In-Reply-To: <87k1yq2odq.fsf@aikidev.net> (Vagrant Cascadian's message of "Thu, 16 Nov 2017 08:13:05 -0800") Message-ID: <87y3n5c2rb.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 1.0 (+) 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 (+) Vagrant Cascadian skribis: > On 2017-11-16, Ludovic Court=C3=A8s wrote: >> Vagrant Cascadian skribis: >> Indeed. You can force GuixSD to use a file system label or a UUID by >> declaring your file system with a label/UUID. So you would write: >> >> (file-system >> ;; =E2=80=A6 >> (mount-point "/") >> (title 'uuid) >> (device (uuid "f549617a-07b0-430a-9723-36c43b98c748"))) > > Yes, this fixed it for me! Awesome. > For the record, spelling it out, apparently the issue wasn't searching > in each menu entry, but: > > # Set 'root' to the partition that contains /gnu/store. > search --file --set /gnu/store/0lwyzz8ayixwvdm1b3xhh26mlh0jz36b-grub-2.= 02/share/grub/unicode.pf2 > > Where it set the initial root. > > > After updating to mount by UUID, the corresponding search line became: > > search --fs-uuid --set 1234ab-cdef-...1234ab > > So it then only loaded files from the appropriate filesystem. I see. > Since this is an issue caused by configuration, perhaps the > documentation could clarify the importance of using UUID or filesystem > labels rather than raw devices: > > https://www.gnu.org/software/guix/manual/html_node/Proceeding-with-the-= Installation.html#Proceeding-with-the-Installation Currently it reads: Preferably, assign partitions a label so that you can easily and reliably refer to them in =E2=80=98file-system=E2=80=99 declarations What would you suggest? > I guess all of the install examples use labels: > > http://git.savannah.gnu.org/cgit/guix.git/tree/gnu/system/examples/ Right. > And I'm not sure how many people have multiple GuixSD installs on their > systems, so perhaps it's just me putting myself into a corner case. :) It=E2=80=99s arguably a corner case :-), but it=E2=80=99s better if it can = be handled correctly. Thank you, Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 16 17:58:42 2017 Received: (at control) by debbugs.gnu.org; 16 Nov 2017 22:58:42 +0000 Received: from localhost ([127.0.0.1]:43996 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eFT7K-0006O8-95 for submit@debbugs.gnu.org; Thu, 16 Nov 2017 17:58:42 -0500 Received: from hera.aquilenet.fr ([141.255.128.1]:46877) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eFT7J-0006O1-10 for control@debbugs.gnu.org; Thu, 16 Nov 2017 17:58:41 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 8B86DE67A for ; Thu, 16 Nov 2017 23:58:42 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fi1ebIsemWSB for ; Thu, 16 Nov 2017 23:58:42 +0100 (CET) Received: from ribbon (unknown [IPv6:2a01:e0a:1d:7270:af76:b9b:ca24:c465]) by hera.aquilenet.fr (Postfix) with ESMTPSA id E272CE283 for ; Thu, 16 Nov 2017 23:58:41 +0100 (CET) Date: Thu, 16 Nov 2017 23:58:38 +0100 Message-Id: <87a7zlbzkx.fsf@gnu.org> To: control@debbugs.gnu.org From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: control message for bug #29312 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: control 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 (+) tags 29312 notabug close 29312