all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Giovanni Biscuolo <g@xelera.eu>
To: 35995@debbugs.gnu.org, "Tobias Geerinckx-Rice" <me@tobias.gr>,
	"Ludovic Courtès" <ludo@gnu.org>
Cc: guix-devel@gnu.org
Subject: bug#35995: Installer: GUIX_IMAGE as /dev/sda on some hardware?
Date: Wed, 29 May 2019 21:49:41 +0200	[thread overview]
Message-ID: <87ftox11nu.fsf__9109.66545795731$1559159492$gmane$org@roquette.mug.biscuolo.net> (raw)
In-Reply-To: <87a7f6qygw.fsf@nckx>

[-- Attachment #1: Type: text/plain, Size: 2301 bytes --]

Hello Tobias and Ludo'

I've opened a bug report for this, WDYT if we go on there?

Tobias Geerinckx-Rice <me@tobias.gr> writes:

> Ludovic Courtès wrote:
>> Ideally, we’d use an actual UUID object (or a string?) here 
>> rather than
>> this Linux/udev-specific idiom.  […]
>> I believe using Guile-Parted we could map it back to a /dev 
>> name.
>
> Yah, 's one of the reasons that I haven't sent anything yet (the 
> 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 
> did little more than grep around for ‘uid’ and friends.  So you 
> tell me ;-)
>
> …
>
> Hum, wait a minute.  Isn't that irrelevant?  Doesn't Guix itself 
> do exactly this when mounting file systems?  Sigh, silly me, I 
> should be able to re-use that…  >_<

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:

--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

--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.html


[2] https://www.gnu.org/software/grub/manual/grub/html_node/Device-map.html

-- 
Giovanni Biscuolo

Xelera IT Infrastructures

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

  reply	other threads:[~2019-05-29 19:51 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-25  9:04 Installer: GUIX_IMAGE as /dev/sda on some hardware? Giovanni Biscuolo
2019-05-25 11:58 ` Tobias Geerinckx-Rice
2019-05-25 13:16   ` Giovanni Biscuolo
2019-05-26 11:22     ` Tobias Geerinckx-Rice
2019-05-26 11:31     ` Tobias Geerinckx-Rice
2019-05-26 21:26     ` Tobias Geerinckx-Rice
2019-05-28 15:11     ` Ludovic Courtès
2019-05-28 17:29       ` Tobias Geerinckx-Rice
2019-05-29 19:49         ` Giovanni Biscuolo [this message]
2019-05-29 19:49         ` Giovanni Biscuolo
2019-05-29 20:19           ` bug#35995: " Danny Milosavljevic
2019-05-31 21:42             ` Ludovic Courtès
2019-05-31 22:16               ` bug#35995: " Tobias Geerinckx-Rice
2019-05-31 22:16               ` Tobias Geerinckx-Rice
2019-05-31 23:31                 ` bug#35995: " Danny Milosavljevic
2019-05-31 23:31                 ` Danny Milosavljevic
2019-05-31 21:42             ` bug#35995: " Ludovic Courtès
2019-05-29 19:16       ` bug#35995: [wishlist] bootloader-configuration, avoid use of /dev/sd? Giovanni Biscuolo
     [not found]         ` <handler.35995.B.155915741432036.ack@debbugs.gnu.org>
2024-02-28  9:29           ` Giovanni Biscuolo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='87ftox11nu.fsf__9109.66545795731$1559159492$gmane$org@roquette.mug.biscuolo.net' \
    --to=g@xelera.eu \
    --cc=35995@debbugs.gnu.org \
    --cc=guix-devel@gnu.org \
    --cc=ludo@gnu.org \
    --cc=me@tobias.gr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.