GNU bug report logs - #35995
[wishlist] bootloader-configuration, avoid use of /dev/sd?

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Severity: wishlist; Reported by: Giovanni Biscuolo <g@HIDDEN>; dated Wed, 29 May 2019 19:17:02 UTC; Maintainer for guix is bug-guix@HIDDEN.

Message received at 35995 <at> debbugs.gnu.org:


Received: (at 35995) by debbugs.gnu.org; 31 May 2019 23:31:35 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 31 19:31:34 2019
Received: from localhost ([127.0.0.1]:36602 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hWqzm-0004EQ-LG
	for submit <at> debbugs.gnu.org; Fri, 31 May 2019 19:31:34 -0400
Received: from dd26836.kasserver.com ([85.13.145.193]:51430)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dannym@HIDDEN>) id 1hWqzk-0004EF-K4
 for 35995 <at> debbugs.gnu.org; Fri, 31 May 2019 19:31:33 -0400
Received: from localhost (178.113.171.190.wireless.dyn.drei.com
 [178.113.171.190])
 by dd26836.kasserver.com (Postfix) with ESMTPSA id 94FCD33677AA;
 Sat,  1 Jun 2019 01:31:30 +0200 (CEST)
Date: Sat, 1 Jun 2019 01:31:27 +0200
From: Danny Milosavljevic <dannym@HIDDEN>
To: Tobias Geerinckx-Rice <me@HIDDEN>
Subject: Re: Installer: GUIX_IMAGE as /dev/sda on some hardware?
Message-ID: <20190601013127.6dbd31ca@HIDDEN>
In-Reply-To: <87r28ep8vg.fsf@nckx>
References: <874l5i52i1.fsf@HIDDEN> <87r28mzqxv.fsf@nckx>
 <87y32u3c9f.fsf@HIDDEN> <87o93mwr4b.fsf@HIDDEN>
 <87a7f6qygw.fsf@nckx> <87ftox11nu.fsf@HIDDEN>
 <20190529221944.2d361250@HIDDEN> <874l5amhc8.fsf@HIDDEN>
 <87r28ep8vg.fsf@nckx>
X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-unknown-linux-gnu)
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
 boundary="Sig_/.7knr1weIFesk=fKC0Fz5x2"; protocol="application/pgp-signature"
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 35995
Cc: 35995 <at> debbugs.gnu.org, Giovanni Biscuolo <g@HIDDEN>,
 Ludovic =?ISO-8859-1?Q?Court=E8s?= <ludo@HIDDEN>, guix-devel@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

--Sig_/.7knr1weIFesk=fKC0Fz5x2
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Yeah, but disk ids are not uuids.

/dev/disk/by-id seems to be a good way to find those disk ids in order to p=
ass
them to grub-install.  I doubt that this can be made OS-independent--even t=
he
udev rules specify different variables for different devices, sometimes it's
bus id and serial number, sometimes it's name and serial number, sometimes =
it's
ieee1394_id, sometimes ID_WWN_WITH_EXTENSION.

Alternatively, grub also works from a boot-active partition--it nothing else
works, we can install grub to a partition (for example the root partition).

Then, migration would be difficult, though (if people had grub installed on
the MBR, that destroyed the previous loader that would have loaded from the
boot sector of the partition).

--Sig_/.7knr1weIFesk=fKC0Fz5x2
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAlzxuU8ACgkQ5xo1VCww
uqWIegf/VzQwkEKWQoN3NHCaKGOS7ddoLoW6VmJKtdNOKLq951aq5vMxt/l4K/8v
W2D8ArZASv6NZEukelCLKqiG5u4S5nILAYyjJ7w6mSFdDCkNd6IN5CnNZvpO82oI
kv9VolTKDafhu3Dm1h2lJIECNB6b53T69XqOUW8PVpXrJfS4pAvtCS29zFCucIcx
ptEdUVyGdMjZbXAnOUUglLizd/dYPuX4ULgijFt7XjkJKsU0yKaH/VkMbD6xHXEU
HciItmCIFeYKE1rDk0R5sNxorMWfyQKztd3o6TSDmB05UrsQOowBvkAS0dnMhauo
ev5kr8/IAuwNZNNpNiAfX0l88ObZ/A==
=0eIB
-----END PGP SIGNATURE-----

--Sig_/.7knr1weIFesk=fKC0Fz5x2--




Information forwarded to bug-guix@HIDDEN:
bug#35995; Package guix. Full text available.

Message received at 35995 <at> debbugs.gnu.org:


Received: (at 35995) by debbugs.gnu.org; 31 May 2019 22:17:05 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 31 18:17:05 2019
Received: from localhost ([127.0.0.1]:36545 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hWpph-0001ny-6C
	for submit <at> debbugs.gnu.org; Fri, 31 May 2019 18:17:05 -0400
Received: from tobias.gr ([80.241.217.52]:45608)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <me@HIDDEN>) id 1hWppe-0001nY-Vk
 for 35995 <at> debbugs.gnu.org; Fri, 31 May 2019 18:17:04 -0400
Received: by tobias.gr (OpenSMTPD) with ESMTP id a9704082;
 Fri, 31 May 2019 22:16:55 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=tobias.gr; h=from:to:cc
 :subject:references:in-reply-to:date:message-id:mime-version
 :content-type; s=2018; i=me@HIDDEN; bh=r8ILOWN/VqLbz5KdDzZgyH
 HkvXUuL6evH9IIdYFoaAw=; b=djOF9GwMf2zhX9oy4C6d/GomdX56LR2UmVJ60y
 loieGdZSlTCc4D5uE2Zz/822vZ8lYIs+dnMN1hO67z/1zO7eWHLmcN/OOznH7Hmw
 39erdX2r3/CRLziou93vAZLPzvryrgPpfVwQmJgUP5QRnUOj+zio1lv4glF1Et8u
 H0CLgpWxHjMM7OsVG4Bsob/RjuuWEwEXKxHE4VzsvGI0Ga6CUlt0JLDqv2zeHOdk
 Mv32sGEySf9QO/c5ZIqwXaaqqkm6JppqP3yRBQRQLqr4s+HnrLUAyextbsc50lKf
 MnGv0MlTvDfxcu3yptbHI/B8IwDwr0HURmNr5L3HO+xx5IyQ==
Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id d3d05bea
 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); 
 Fri, 31 May 2019 22:16:53 +0000 (UTC)
From: Tobias Geerinckx-Rice <me@HIDDEN>
To: Ludovic =?utf-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Subject: Re: Installer: GUIX_IMAGE as /dev/sda on some hardware?
References: <874l5i52i1.fsf@HIDDEN> <87r28mzqxv.fsf@nckx>
 <87y32u3c9f.fsf@HIDDEN> <87o93mwr4b.fsf@HIDDEN>
 <87a7f6qygw.fsf@nckx> <87ftox11nu.fsf@HIDDEN>
 <20190529221944.2d361250@HIDDEN> <874l5amhc8.fsf@HIDDEN>
In-reply-to: <874l5amhc8.fsf@HIDDEN>
Date: Sat, 01 Jun 2019 00:16:51 +0200
Message-ID: <87r28ep8vg.fsf@nckx>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha512; protocol="application/pgp-signature"
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 35995
Cc: 35995 <at> debbugs.gnu.org, Danny Milosavljevic <dannym@HIDDEN>,
 guix-devel@HIDDEN, Giovanni Biscuolo <g@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

--=-=-=
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: quoted-printable

Ludovic Court=C3=A8s wrote:
> Danny Milosavljevic <dannym@HIDDEN> skribis:
>> Grub already can search by uuid or label (via "search --fsuuid"=20
>> and
>> "search --label", respectively).  IF you specify an uuid or=20
>> label
>> in your operating-system configuration it will use that.
>
> These are concerned with file system UUIDs/labels, whereas this=20
> issue is
> about disk IDs, AIUI.  Or am I missing something?

This.  Also, this only affects grub-install=E2=80=94not =E2=80=98grub=20
run-time=E2=80=99=E2=80=94which runs under the Hurd/Linux/=E2=80=A6, unless=
 I, too, am=20
missing something, and this entire thread collapses in a cacophony=20
of confusion.

G'night,

T G-R

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iHUEARYKAB0WIQT12iAyS4c9C3o4dnINsP+IT1VteQUCXPGn0wAKCRANsP+IT1Vt
eezfAP9Wt9X6DEDgcgYwcXXdu3LFzURcMtqREGsWCliiZSbOLwD/Us/lSRdyXrIC
RtmhsV0ZEbYj9o8G5Xe2mcFHSE5h7wI=
=IgY2
-----END PGP SIGNATURE-----
--=-=-=--




Information forwarded to bug-guix@HIDDEN:
bug#35995; Package guix. Full text available.

Message received at 35995 <at> debbugs.gnu.org:


Received: (at 35995) by debbugs.gnu.org; 31 May 2019 21:42:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 31 17:42:28 2019
Received: from localhost ([127.0.0.1]:36515 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hWpIB-0000WH-PT
	for submit <at> debbugs.gnu.org; Fri, 31 May 2019 17:42:28 -0400
Received: from eggs.gnu.org ([209.51.188.92]:50355)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1hWpIA-0000Vy-5Q
 for 35995 <at> debbugs.gnu.org; Fri, 31 May 2019 17:42:26 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:54843)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1hWpI2-0001x7-4M; Fri, 31 May 2019 17:42:19 -0400
Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=53396 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>)
 id 1hWpI1-0003Ip-NO; Fri, 31 May 2019 17:42:17 -0400
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: Danny Milosavljevic <dannym@HIDDEN>
Subject: Re: Installer: GUIX_IMAGE as /dev/sda on some hardware?
References: <874l5i52i1.fsf@HIDDEN> <87r28mzqxv.fsf@nckx>
 <87y32u3c9f.fsf@HIDDEN> <87o93mwr4b.fsf@HIDDEN>
 <87a7f6qygw.fsf@nckx> <87ftox11nu.fsf@HIDDEN>
 <20190529221944.2d361250@HIDDEN>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: 12 Prairial an 227 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: Fri, 31 May 2019 23:42:15 +0200
In-Reply-To: <20190529221944.2d361250@HIDDEN> (Danny Milosavljevic's
 message of "Wed, 29 May 2019 22:19:44 +0200")
Message-ID: <874l5amhc8.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 35995
Cc: 35995 <at> debbugs.gnu.org, Giovanni Biscuolo <g@HIDDEN>,
 Tobias Geerinckx-Rice <me@HIDDEN>, guix-devel@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hi Danny,

Danny Milosavljevic <dannym@HIDDEN> skribis:

> Grub already can search by uuid or label (via "search --fsuuid" and
> "search --label", respectively).  IF you specify an uuid or label
> in your operating-system configuration it will use that.

These are concerned with file system UUIDs/labels, whereas this issue is
about disk IDs, AIUI.  Or am I missing something?

Ludo=E2=80=99.




Information forwarded to bug-guix@HIDDEN:
bug#35995; Package guix. Full text available.

Message received at 35995 <at> debbugs.gnu.org:


Received: (at 35995) by debbugs.gnu.org; 29 May 2019 20:19:55 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed May 29 16:19:55 2019
Received: from localhost ([127.0.0.1]:60008 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hW53D-0001Xz-DB
	for submit <at> debbugs.gnu.org; Wed, 29 May 2019 16:19:55 -0400
Received: from dd26836.kasserver.com ([85.13.145.193]:43478)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dannym@HIDDEN>) id 1hW53A-0001Xm-3c
 for 35995 <at> debbugs.gnu.org; Wed, 29 May 2019 16:19:53 -0400
Received: from localhost (178.113.234.233.wireless.dyn.drei.com
 [178.113.234.233])
 by dd26836.kasserver.com (Postfix) with ESMTPSA id 05DE93364046;
 Wed, 29 May 2019 22:19:49 +0200 (CEST)
Date: Wed, 29 May 2019 22:19:44 +0200
From: Danny Milosavljevic <dannym@HIDDEN>
To: Giovanni Biscuolo <g@HIDDEN>, 35995 <at> debbugs.gnu.org
Subject: Re: Installer: GUIX_IMAGE as /dev/sda on some hardware?
Message-ID: <20190529221944.2d361250@HIDDEN>
In-Reply-To: <87ftox11nu.fsf@HIDDEN>
References: <874l5i52i1.fsf@HIDDEN> <87r28mzqxv.fsf@nckx>
 <87y32u3c9f.fsf@HIDDEN> <87o93mwr4b.fsf@HIDDEN>
 <87a7f6qygw.fsf@nckx> <87ftox11nu.fsf@HIDDEN>
X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-unknown-linux-gnu)
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
 boundary="Sig_/bG3A9a27UR6n.p0MwdaAxIw"; protocol="application/pgp-signature"
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 35995
Cc: guix-devel@HIDDEN, Ludovic =?ISO-8859-1?Q?Court=E8s?= <ludo@HIDDEN>,
 Tobias Geerinckx-Rice <me@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

--Sig_/bG3A9a27UR6n.p0MwdaAxIw
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Grub already can search by uuid or label (via "search --fsuuid" and
"search --label", respectively).  IF you specify an uuid or label
in your operating-system configuration it will use that.

The only part missing is: The Guix installer's config generator should
find out the uuids and print those instead of the /dev nodes.

If nothing else, we can just use blkid to find out which is which.

For example: blkid -d -s UUID -o value /dev/sda1

But T G-R is right, Guix already does what is required at other places.

Care has to be taken that parted also uses GUIDs for GPT partition TYPES
and also for partitions as such (not their contents).  Those are something
else.

--Sig_/bG3A9a27UR6n.p0MwdaAxIw
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAlzu6WAACgkQ5xo1VCww
uqV3+wf9EXt8vpP3lyfQVilyOagjkrolC9wWwDLXvgHNvxrT3dVb1zVWKm8UEIok
8EvETyDTPoSejkgzRjfpN+pJlH1L7LcGMXl62WZGkTVK5r6f5tJGBv+eVBiBug5P
4AuB/AdVvGKwMJgEfc626jQVIdcsaW6JQOIW28tLB3ieIPx+xCoGQLON4YCB6GV1
DZ9HinntnI7IXi56BzzoQpEz9Snq4iNIvqiPD0o6hQL85KL3GG6LPkBf48ynAWSM
7cqgUNSupvyK7LESwlLn3bt9rhFVjyuTde21X22N34ucxfRBiUC2yVrl3lKSM0Rv
7fD4EkFPvgqMEjIOb7RlgMpQbZ9u4Q==
=0Ah5
-----END PGP SIGNATURE-----

--Sig_/bG3A9a27UR6n.p0MwdaAxIw--




Information forwarded to bug-guix@HIDDEN:
bug#35995; Package guix. Full text available.

Message received at 35995 <at> debbugs.gnu.org:


Received: (at 35995) by debbugs.gnu.org; 29 May 2019 19:50:12 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed May 29 15:50:12 2019
Received: from localhost ([127.0.0.1]:59956 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hW4aS-0000mW-66
	for submit <at> debbugs.gnu.org; Wed, 29 May 2019 15:50:12 -0400
Received: from ns13.heimat.it ([46.4.214.66]:52842)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <g@HIDDEN>) id 1hW4aP-0000mH-DR
 for 35995 <at> debbugs.gnu.org; Wed, 29 May 2019 15:50:10 -0400
Received: from localhost (ip6-localhost [127.0.0.1])
 by ns13.heimat.it (Postfix) with ESMTP id 62449300F54;
 Wed, 29 May 2019 19:50:03 +0000 (UTC)
X-Virus-Scanned: Debian amavisd-new at ns13.heimat.it
Received: from ns13.heimat.it ([127.0.0.1])
 by localhost (ns13.heimat.it [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 87ctbAovRGSv; Wed, 29 May 2019 19:49:43 +0000 (UTC)
Received: from bourrache.mug.xelera.it (unknown [93.56.161.211])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (Client did not present a certificate)
 by ns13.heimat.it (Postfix) with ESMTPSA id 7F4F6300100;
 Wed, 29 May 2019 19:49:43 +0000 (UTC)
Received: from roquette.mug.biscuolo.net (roquette.mug.biscuolo.net
 [10.38.2.14])
 by bourrache.mug.xelera.it (Postfix) with SMTP id DC555300A04;
 Wed, 29 May 2019 21:49:42 +0200 (CEST)
Received: (nullmailer pid 2895 invoked by uid 1000);
 Wed, 29 May 2019 19:49:42 -0000
From: Giovanni Biscuolo <g@HIDDEN>
To: 35995 <at> debbugs.gnu.org, Tobias Geerinckx-Rice <me@HIDDEN>,
 Ludovic =?utf-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Subject: Re: Installer: GUIX_IMAGE as /dev/sda on some hardware?
In-Reply-To: <87a7f6qygw.fsf@nckx>
Organization: Xelera.eu
References: <874l5i52i1.fsf@HIDDEN> <87r28mzqxv.fsf@nckx>
 <87y32u3c9f.fsf@HIDDEN> <87o93mwr4b.fsf@HIDDEN>
 <87a7f6qygw.fsf@nckx>
Date: Wed, 29 May 2019 21:49:41 +0200
Message-ID: <87ftox11nu.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha512; protocol="application/pgp-signature"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 35995
Cc: guix-devel@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--=-=-=
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 <me@HIDDEN> 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-----
--=-=-=--




Information forwarded to bug-guix@HIDDEN:
bug#35995; Package guix. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 29 May 2019 19:16:54 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed May 29 15:16:54 2019
Received: from localhost ([127.0.0.1]:59899 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hW44E-0008Ke-A7
	for submit <at> debbugs.gnu.org; Wed, 29 May 2019 15:16:54 -0400
Received: from eggs.gnu.org ([209.51.188.92]:54845)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <g@HIDDEN>) id 1hW44C-0008KR-PE
 for submit <at> debbugs.gnu.org; Wed, 29 May 2019 15:16:53 -0400
Received: from lists.gnu.org ([209.51.188.17]:44679)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <g@HIDDEN>) id 1hW447-0007S7-MK
 for submit <at> debbugs.gnu.org; Wed, 29 May 2019 15:16:47 -0400
Received: from eggs.gnu.org ([209.51.188.92]:40976)
 by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <g@HIDDEN>)
 id 1hW43z-0008Ej-01
 for bug-guix@HIDDEN; Wed, 29 May 2019 15:16:41 -0400
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,URIBL_BLOCKED
 autolearn=disabled version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <g@HIDDEN>) id 1hW43x-0007Ly-40
 for bug-guix@HIDDEN; Wed, 29 May 2019 15:16:38 -0400
Received: from ns13.heimat.it ([46.4.214.66]:57480)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <g@HIDDEN>)
 id 1hW43v-0007GG-H1
 for bug-guix@HIDDEN; Wed, 29 May 2019 15:16:37 -0400
Received: from localhost (ip6-localhost [127.0.0.1])
 by ns13.heimat.it (Postfix) with ESMTP id 5DFD4300F54
 for <bug-guix@HIDDEN>; Wed, 29 May 2019 19:16:33 +0000 (UTC)
X-Virus-Scanned: Debian amavisd-new at ns13.heimat.it
Received: from ns13.heimat.it ([127.0.0.1])
 by localhost (ns13.heimat.it [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id nGCbN9o8WDR0 for <bug-guix@HIDDEN>;
 Wed, 29 May 2019 19:16:12 +0000 (UTC)
Received: from bourrache.mug.xelera.it (unknown [93.56.161.211])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (Client did not present a certificate)
 by ns13.heimat.it (Postfix) with ESMTPSA id 80B583000CC
 for <bug-guix@HIDDEN>; Wed, 29 May 2019 19:16:12 +0000 (UTC)
Received: from roquette.mug.biscuolo.net (roquette.mug.biscuolo.net
 [10.38.2.14])
 by bourrache.mug.xelera.it (Postfix) with SMTP id DC768300A04
 for <bug-guix@HIDDEN>; Wed, 29 May 2019 21:16:11 +0200 (CEST)
Received: (nullmailer pid 2267 invoked by uid 1000);
 Wed, 29 May 2019 19:16:11 -0000
From: Giovanni Biscuolo <g@HIDDEN>
To: bug-guix@HIDDEN
Subject: [wishlist] bootloader-configuration, avoid use of /dev/sd?
Organization: Xelera.eu
References: <874l5i52i1.fsf@HIDDEN> <87r28mzqxv.fsf@nckx>
 <87y32u3c9f.fsf@HIDDEN> <87o93mwr4b.fsf@HIDDEN>
Date: Wed, 29 May 2019 21:16:11 +0200
Message-ID: <87imtt137o.fsf@HIDDEN>
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]
X-Received-From: 46.4.214.66
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Spam-Score: -1.4 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.4 (--)

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Hello,

Following a recent discussion on Guix-devel [1] I'm "forwarding here" a
proposal to switch from /dev/sd? to (target (uuid ...)) in
bootloader-configuration operating-system declaration

This is a recap of current situation: the installer usually uses
/dev/sda as target for grub-install (and bootloader-cofiguration) but it
happened to me that on a machine /dev/sda was the USB media, not the
target HD

The fact is that it's not guaranteed that /dev/sd? always corresponds to
the same device

This is where we are with the discussion:

Ludovic Court=C3=A8s <ludo@HIDDEN> writes:

> Hello!
>
> Giovanni Biscuolo <g@HIDDEN> skribis:
>
>> But wait! There's the /dev/disk/by-id/ tree, I did not notice it until
>> now! :-)
>>
>> That's the solution:
>>
>>
>>   (bootloader
>>     (bootloader-configuration
>>       (bootloader grub-bootloader)
>>       (target "/dev/disk/by-id/scsi-3600508b1001c75a3bebb04b23d19e249")
>>       (keyboard-layout keyboard-layout)))
>>
>> I did not test this but it smells like running, if Guix devels agree I
>> think Installer should adopt /dev/disk/by-id by default, sorry I'm not
>> able to propose a patch for this
>
> Ideally, we=E2=80=99d use an actual UUID object (or a string?) here rathe=
r than
> this Linux/udev-specific idiom.  So it would look like:
>
>   (bootloader-configuration
>     ;; =E2=80=A6
>     (target (uuid =E2=80=A6)))
>
> Would that work?
>
> I believe using Guile-Parted we could map it back to a /dev name.
>
> WDYT?
>
> Ludo=E2=80=99.



[1] Message-ID: <87o93mwr4b.fsf@HIDDEN>
    http://lists.gnu.org/archive/html/guix-devel/2019-05/msg00454.html

=2D-=20
Giovanni Biscuolo

Xelera IT Infrastructures

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEERcxjuFJYydVfNLI5030Op87MORIFAlzu2nsACgkQ030Op87M
ORLxIRAAofCSPxkPjw/1rmFuJmp03DzujXbWQF6idUvGPZnhBPyDYjXyMJCU2oEk
ctvOlOKfe4NpI/2P7wUxSxgXJ6iLOezdZZV5BOrc707TaeB3sRYILKhnsL8FLBJK
zo+5fALgXw47TVh6KHFIN6NCb70F31tDtrFtGkKE043J4u59CtvwSxdQxEAaLIoc
wkIW6f9xiMzf/I/EHt31Rw+ZqaLZjKxXDzkn6ETwK8tsNRQd+eZDpsuvHH8KpelU
aiLrSPs2xyG2HScqgsFQNINQMomq/TNFwwqcSUr7//5/Ea/cQl8vZQ67L7aV3HzV
+B9Zx1KwYYaYGlL234cBMOMl3NhAtkoOiWW1O9cv30JWQBKO3JzwFv3l7dq0eslW
Fdu6R7rt4puh+OTpMwmxuBxBq4+h3/kf6Hm2kdbTulTLL3m7qX3LWoH/vMtCeGCB
9P9LJCe4UZ7sRkrZvO2QleeaexKHEWndvEeSbODFAGka1zmiAuiC1rAscErf7sj+
XZTTW4+zIY2Gb8xHnMa/Xj1ja0CZj4afamgAZ9eaE6KyLsi+qjNARd1K5wWJ+uff
UrZR86QmlZ+w6FybWSaSVNfziyDRrr2GsRD2J6pBteFwvTPZkVjZCGvWciXBuYIU
tmAaNJE8aC0EVsLIMDlSMTJn/gkp7gFJLXkm1LNZ0nJCw2TWESA=
=A/Yd
-----END PGP SIGNATURE-----
--=-=-=--




Acknowledgement sent to Giovanni Biscuolo <g@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#35995; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.