From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vagrant Cascadian Subject: bug#29312: GRUB with multiple partitions with identical bzImage Date: Thu, 16 Nov 2017 08:13:05 -0800 Message-ID: <87k1yq2odq.fsf@aikidev.net> References: <87mv3n2jys.fsf@aikidev.net> <87a7zmfg8x.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52015) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eFMnn-0002c7-PT for bug-guix@gnu.org; Thu, 16 Nov 2017 11:14:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eFMni-00083H-1h for bug-guix@gnu.org; Thu, 16 Nov 2017 11:14:07 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:35076) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eFMnh-000835-V7 for bug-guix@gnu.org; Thu, 16 Nov 2017 11:14:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eFMnh-0003FT-Ph for bug-guix@gnu.org; Thu, 16 Nov 2017 11:14:01 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87a7zmfg8x.fsf@gnu.org> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 29312@debbugs.gnu.org --=-=-= 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----- --=-=-=--