all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Mathieu Othacehe <othacehe@gnu.org>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: 47780-done@debbugs.gnu.org
Subject: bug#47780: [installer] Trying to install to DVD leads to crash
Date: Thu, 17 Jun 2021 11:18:31 +0200	[thread overview]
Message-ID: <877disc0ig.fsf@gnu.org> (raw)
In-Reply-To: <8735tky6d7.fsf@gnu.org> ("Ludovic Courtès"'s message of "Mon, 14 Jun 2021 14:32:04 +0200")


Hey,

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

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.

Closing this one,

Thanks,

Mathieu




  reply	other threads:[~2021-06-17  9:19 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 [this message]
2021-06-20 20:55       ` Ludovic Courtès

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=877disc0ig.fsf@gnu.org \
    --to=othacehe@gnu.org \
    --cc=47780-done@debbugs.gnu.org \
    --cc=ludo@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 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.