From mboxrd@z Thu Jan 1 00:00:00 1970 From: Giovanni Biscuolo Subject: bug#35995: Installer: GUIX_IMAGE as /dev/sda on some hardware? Date: Wed, 29 May 2019 21:49:41 +0200 Message-ID: <87ftox11nu.fsf__9109.66545795731$1559159492$gmane$org@roquette.mug.biscuolo.net> References: <874l5i52i1.fsf@roquette.mug.biscuolo.net> <87r28mzqxv.fsf@nckx> <87y32u3c9f.fsf@roquette.mug.biscuolo.net> <87o93mwr4b.fsf@gnu.org> <87a7f6qygw.fsf@nckx> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:46216) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hW4bI-0006nC-T6 for bug-guix@gnu.org; Wed, 29 May 2019 15:51:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hW4bG-0000NV-Ve for bug-guix@gnu.org; Wed, 29 May 2019 15:51:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:46413) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hW4bG-0000N8-6I for bug-guix@gnu.org; Wed, 29 May 2019 15:51:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hW4bG-0000no-1S for bug-guix@gnu.org; Wed, 29 May 2019 15:51:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87a7f6qygw.fsf@nckx> 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: 35995@debbugs.gnu.org, Tobias Geerinckx-Rice , Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: guix-devel@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello Tobias and Ludo' I've opened a bug report for this, WDYT if we go on there? Tobias Geerinckx-Rice writes: > Ludovic Court=C3=A8s wrote: >> Ideally, we=E2=80=99d use an actual UUID object (or a string?) here=20 >> rather than >> this Linux/udev-specific idiom. [=E2=80=A6] >> I believe using Guile-Parted we could map it back to a /dev=20 >> name. > > Yah, 's one of the reasons that I haven't sent anything yet (the=20 > main one being shame, of course; car/cdr for the win & all that). > >> Would that work? > > I'd looked in Guile-parted before but came up dry. To be fair I=20 > did little more than grep around for =E2=80=98uid=E2=80=99 and friends. = So you=20 > tell me ;-) > > =E2=80=A6 > > Hum, wait a minute. Isn't that irrelevant? Doesn't Guix itself=20 > do exactly this when mounting file systems? Sigh, silly me, I=20 > should be able to re-use that=E2=80=A6 >_< Grub supports quite a number of ways to specify devices [1] but I cannot find something suitable for this purpose: am I missimg something obvious? AFAIU on ther distros (e.g. Debian) (the installer?) populates a device map [2] using the grub-mkdevicemap utility (grub-common package in Debian) but I cannot find that in our grub package This is an example on one of my Debian hosts: =2D-8<---------------cut here---------------start------------->8--- $ cat /boot/grub/device.map (hd0) /dev/disk/by-id/ata-WDC_WD10EADS-00L5B1_WD-WCAU4D992691 (hd1) /dev/disk/by-id/ata-ST3250620NS_9QE2L68Z (hd2) /dev/disk/by-id/ata-ST3250620NS_9QE2FSQD (hd3) /dev/disk/by-id/ata-ST3250620NS_9QE27YPJ (hd4) /dev/disk/by-id/ata-WDC_WD7500BPKT-00PK4T0_WD-WX11A4181554 (hd5) /dev/disk/by-id/ata-WDC_WD7500BPKT-00PK4T0_WD-WXM1A61D0766 =2D-8<---------------cut here---------------end--------------->8--- (the map is not updated) We could use (hd?) in grub config - that's grub specific, not Linux/udev specific - **but** we should find a way to automate the selection of the device corresponding to our target (the one mounted as /mnt) Thanks for working on this!!! Happy hacking. Gio'. [1] https://www.gnu.org/software/grub/manual/grub/html_node/Device-syntax.h= tml [2] https://www.gnu.org/software/grub/manual/grub/html_node/Device-map.html =2D-=20 Giovanni Biscuolo Xelera IT Infrastructures --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEERcxjuFJYydVfNLI5030Op87MORIFAlzu4lYACgkQ030Op87M ORIhGg/+ISQXtwbCR4aEtCpcpaQEgFdizZ7zZIsBQY24y2HLn2GpEkrS4kJotDbJ Kr3/Ss2TN3jlqvS/nWM0CdSRq9p1qJN/emwQAldFkxejHqmbuJkw1hCyw+UZPEq9 6H+zkx+J3ya9bjcOLdtQID2mllv+pyaI/oDHu99bX1Ein+XkJGuu+bt27u/ALyPc eOoKnU1cRhM8Y2ivn30hCIfx7BhWFhv3QK9JUaQvgFFUhuxVK1aTmmtXLTta3AUR 8TIKmV6uTN9lbeiC96EzIPODQj4PTqVxq9nunQ8ss6vAnjl04zvnBU4+KVPi+KCy x1bxPrHCkkg8ypg2qfDpEv9aPVnihMHF+snpOaBCjSFzSm6/6U0NixVQi/vYtUHD EVLwlda2oIlR0lFts6aXMfzEN60jDdOd9d+3dh4q1NmY7l7y8+rv7eWv0bXQSIvG OKr5Ngkf63kKnm9CjOQwempjDVi8i708bG4q2gh9jcMed5pLd7Ms4OXmIn97AhPA +ielVB4dak8iqv1pE5hTad7rXoCmbSet8gCWN9T7A9pC4XVTKYTZpBGfZxiRcei7 328X8UoycaQtp8I1G+5Mo+Cyq0wUqVJkSFCAnaFjXLLo61NUxQps6LY99CqP7N4A WZqCM+zWoPZhCFOk8Ity9VpfSWfP6rzYpcK+oHxJrlfKOaEbUMo= =7U82 -----END PGP SIGNATURE----- --=-=-=--