From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id kIRFBZETy2ApWwEAgWs5BA (envelope-from ) for ; Thu, 17 Jun 2021 11:19:13 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id UAHHAJETy2AECwAA1q6Kng (envelope-from ) for ; Thu, 17 Jun 2021 09:19:13 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 0B9FF1AA33 for ; Thu, 17 Jun 2021 11:19:11 +0200 (CEST) Received: from localhost ([::1]:56648 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ltoB3-0006J5-UH for larch@yhetil.org; Thu, 17 Jun 2021 05:19:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52764) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ltoAw-0006Ig-Bh for bug-guix@gnu.org; Thu, 17 Jun 2021 05:19:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42270) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ltoAw-0004cX-4c for bug-guix@gnu.org; Thu, 17 Jun 2021 05:19:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ltoAv-0000Z9-Q8 for bug-guix@gnu.org; Thu, 17 Jun 2021 05:19:01 -0400 Subject: bug#47780: [installer] Trying to install to DVD leads to crash Resent-From: Mathieu Othacehe Original-Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Date: Thu, 17 Jun 2021 09:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 47780 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Mail-Followup-To: 47780@debbugs.gnu.org, othacehe@gnu.org, ludo@gnu.org Received: via spool by 47780-done@debbugs.gnu.org id=D47780.16239215252144 (code D ref 47780); Thu, 17 Jun 2021 09:19:01 +0000 Received: (at 47780-done) by debbugs.gnu.org; 17 Jun 2021 09:18:45 +0000 Received: from localhost ([127.0.0.1]:53815 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ltoAe-0000YW-SU for submit@debbugs.gnu.org; Thu, 17 Jun 2021 05:18:45 -0400 Received: from eggs.gnu.org ([209.51.188.92]:54858) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ltoAY-0000YC-FY for 47780-done@debbugs.gnu.org; Thu, 17 Jun 2021 05:18:42 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:56386) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ltoAS-0004Dg-Hr; Thu, 17 Jun 2021 05:18:32 -0400 Received: from [2a01:e0a:19b:d9a0:f2f7:a404:c3d3:f8b4] (port=53544 helo=meije) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ltoAS-0001yX-A8; Thu, 17 Jun 2021 05:18:32 -0400 From: Mathieu Othacehe References: <87sg3sd70u.fsf@inria.fr> <87czsqgdbb.fsf@gnu.org> <8735tky6d7.fsf@gnu.org> Date: Thu, 17 Jun 2021 11:18:31 +0200 In-Reply-To: <8735tky6d7.fsf@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Mon, 14 Jun 2021 14:32:04 +0200") Message-ID: <877disc0ig.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 47780-done@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1623921552; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-to:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post; bh=pwjXo8hpb/bGKBf4Yv9rZxiFnPXjzD4j+VK1y7ZM7JE=; b=Zquq7BIKNgUztueltGvZTg7VGNNP2Van6dDfrFkk4rljnqiGLHmqmkc4g5CteuFWxz5h8/ gKM71zFCDNS5o1gt75zd01SenyD7agLi/0QArWL+KXxcraG+Rno4KJL6df/vFtAi1yBnCy +KOf60JlvIfSzuWpmXxfTF3Ntrxj510Bk2daH5t0G1ZNSQyvmFuFj8xcAgTINbbcZOK9tT obeo66AzenMMb40JLOgU10VBhFmTCQLacVXUeLQ0v4YL/Y8aqg09xmr/u1+v5LMvD+y8z5 bE9ogwNtVKOv1S+RGOfZELZSOZb+L0LYOy+t1alVWmth6LGUwH5OlujUCpbOYA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1623921552; a=rsa-sha256; cv=none; b=hTBELb7umf3//52z7fABaOMt0a70m50SsZgGWiI8bhowDW229Jp7VCmu0q56WQWKW0lgYH UNSKGvmuhOBZXo5MdAHpwaGnDVvWp0q0YNSc66Gt1B5Am0dztE2rf9QsOTNGv0PwbA89Ma qHOECuiKeEoD1ZrAF6GMgU+JI3aDOcEn0rYD/dmdAkaOTj5L1DkA8PecaMR6bI93HzT+j7 GKWx+iGf5MPRqEAuhwarRqP4czcnU33jD08/QPN2VfC9tqNU83Fjst5+xrQbdTHL8YQymh QNa+ThE/Pjis0lruJw71CuRMDIyX4Ynbn/aFOLDi5/RjJ2IlA4alhmlsTi/FtQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -2.92 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 0B9FF1AA33 X-Spam-Score: -2.92 X-Migadu-Scanner: scn0.migadu.com X-TUID: 0N9L5DSxLoin 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