From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tobias Geerinckx-Rice Subject: Re: Installer: GUIX_IMAGE as /dev/sda on some hardware? Date: Sun, 26 May 2019 13:22:51 +0200 Message-ID: <87ef4lpiic.fsf@nckx> References: <874l5i52i1.fsf@roquette.mug.biscuolo.net> <87r28mzqxv.fsf@nckx> <87y32u3c9f.fsf@roquette.mug.biscuolo.net> 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]:57565) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hUrF1-0002Ds-Cj for help-guix@gnu.org; Sun, 26 May 2019 07:23:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hUrEx-0002iO-Jv for help-guix@gnu.org; Sun, 26 May 2019 07:23:03 -0400 In-reply-to: <87y32u3c9f.fsf@roquette.mug.biscuolo.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Giovanni Biscuolo Cc: guix-devel@gnu.org, help-guix@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Giovanni, Giovanni Biscuolo wrote: >> /dev/xdyN names have never been safe to use in this way > > I'm not talking about partitions ;-) Neither was I. Force o' habit. May your partitions never be in=20 random order. > According my faulty memory (I cannot reproduce it now) > /dev/sd is what the Installer writes in the=20 > bootloader > section of config.scm: > > --8<---------------cut=20 > here---------------start------------->8--- > > (bootloader > (bootloader-configuration > (bootloader grub-bootloader) > (target "/dev/sda") > (keyboard-layout keyboard-layout))) > I didn't realise that our *installer* did this=E2=80=A6 It shouldn't.=20 Thanks for noting this. > So it's pure coincidence that grub-install on /dev/sda succeedes=20 > on the > whole set of machines users are installing via USB media? :-O =E2=80=98Pure coincidence=E2=80=99 is too loaded. It almost always works! = But=20 your original question already illustrates how =E2=80=98almost always=20 works=E2=80=99 leads to false inductions of =E2=80=98should work=E2=80=99. The odds may be hugely in your favour, but why gamble at all? >> you've discovered, they aren't to be relied on, and you should=20 >> use=20 >> labels or UUIDs instead. > > Labels and UUIDs are for volumes, not for the whole disk ;-) =E2=80=A6? I must not be using the right terminology, but each drive has=20 a =E2=80=98unique identifier=E2=80=99, and a human-readable label (if that = human=20 likes numbers, a lot) that isn't unique. =E2=80=98ID=E2=80=99 & =E2=80=98name=E2=80=99, then, fine, whatever we call= it, my point remains=20 :-P Kind regards, T G-R --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQT12iAyS4c9C3o4dnINsP+IT1VteQUCXOp3CwAKCRANsP+IT1Vt eSmqAQCiPeMyQuBBf+elLBlHHp1YhcW+S70YBSqAXBV1RdrMaAEA1u5zp77lplFO b18zzGdlZCZhqi8cTrq3vnJDbYjxdgo= =QBz9 -----END PGP SIGNATURE----- --=-=-=--