unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: "Ludovic Courtès" <ludo@gnu.org>
To: Mathieu Othacehe <othacehe@gnu.org>
Cc: 47780-done@debbugs.gnu.org
Subject: bug#47780: [installer] Trying to install to DVD leads to crash
Date: Sun, 20 Jun 2021 22:55:09 +0200	[thread overview]
Message-ID: <878s349ryq.fsf@gnu.org> (raw)
In-Reply-To: <877disc0ig.fsf@gnu.org> (Mathieu Othacehe's message of "Thu, 17 Jun 2021 11:18:31 +0200")

Hi,

Mathieu Othacehe <othacehe@gnu.org> skribis:

>> Does Parted provide a way to tell whether a storage device is read-only?
>> That would be ideal.
>
> Yes it does, but this is not enough for a reliable installation device
> detection. In Qemu the installation device is /dev/sr0 that is
> reported as read-only by parted.
>
> Using real hardware, and an installation device on an USB drive, the
> installation device is /dev/sd* and is not reported as read-only by
> parted.

I see.

> However, I found a better way to detect the installation device, that
> relies on reading the root partition UUID from the command line.
>
> I combined the read-only parted method and the UUID based installation
> device detection in e12be802e02b3345a753e7ec1287852a7337a0a5. This seems
> to work well for all my machines, plus for your VM use case.

That’s clever.  Thanks!

Ludo’.




      reply	other threads:[~2021-06-20 20:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-14 19:02 bug#47780: [installer] Trying to install to DVD leads to crash Ludovic Courtès
2021-06-13 12:27 ` Mathieu Othacehe
2021-06-14 12:32   ` Ludovic Courtès
2021-06-17  9:18     ` Mathieu Othacehe
2021-06-20 20:55       ` Ludovic Courtès [this message]

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

  List information: https://guix.gnu.org/

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

  git send-email \
    --in-reply-to=878s349ryq.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=47780-done@debbugs.gnu.org \
    --cc=othacehe@gnu.org \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).