From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 2KcuC5mPg2CYfQEAgWs5BA (envelope-from ) for ; Sat, 24 Apr 2021 05:25:13 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id oAWuBpmPg2BuZAAAbx9fmQ (envelope-from ) for ; Sat, 24 Apr 2021 03:25: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 1F4831B2D0 for ; Sat, 24 Apr 2021 05:25:12 +0200 (CEST) Received: from localhost ([::1]:42684 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1la8ur-0002s0-VG for larch@yhetil.org; Fri, 23 Apr 2021 23:25:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51732) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1la8uk-0002ru-QP for bug-guix@gnu.org; Fri, 23 Apr 2021 23:25:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:55904) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1la8uk-0005G7-JA for bug-guix@gnu.org; Fri, 23 Apr 2021 23:25:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1la8uk-0000X6-EQ for bug-guix@gnu.org; Fri, 23 Apr 2021 23:25:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#47889: [installer image] grub-install efi fails getting canonical path to /boot/efi on dos-formatted disk Resent-From: Bengt Richter Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 24 Apr 2021 03:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47889 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 47889-submit@debbugs.gnu.org id=B47889.16192346792018 (code B ref 47889); Sat, 24 Apr 2021 03:25:02 +0000 Received: (at 47889) by debbugs.gnu.org; 24 Apr 2021 03:24:39 +0000 Received: from localhost ([127.0.0.1]:39217 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1la8uN-0000WT-DA for submit@debbugs.gnu.org; Fri, 23 Apr 2021 23:24:39 -0400 Received: from imta-35.everyone.net ([216.200.145.35]:39766 helo=imta-38.everyone.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1la8uL-0000WK-Ci for 47889@debbugs.gnu.org; Fri, 23 Apr 2021 23:24:37 -0400 Received: from pps.filterd (omta001.sj2.proofpoint.com [127.0.0.1]) by imta-38.everyone.net (8.16.0.43/8.16.0.43) with SMTP id 13O3NH4c023485; Fri, 23 Apr 2021 20:24:36 -0700 X-Eon-Originating-Account: HgaCxO1vKDGUP0divjwzq9aNDDtSvrYODhc4YtqeXpo X-Eon-Dm: m0116952.ppops.net Received: by m0116952.mta.everyone.net (EON-AUTHRELAY2 - 53b92217) id m0116952.60622040.24e74d; Fri, 23 Apr 2021 20:24:34 -0700 X-Eon-Sig: AQMHrIJgg49ytaZ/vgIAAAAE,a1eb1d33f5723f275722ec81ceed6c5e X-Eip: scjME-tntOQaopeGtSULaIeKHFbMsfSz-MX7rTLX8Eg Date: Sat, 24 Apr 2021 05:24:26 +0200 From: Bengt Richter Message-ID: <20210424032425.GA18504@LionPure> References: <20210419092928.p426llfdlvb5ay3z@pelzflorian.localdomain> <878s5a1m9k.fsf@gnu.org> <20210422143651.fwdrrqmcw225eh23@pelzflorian.localdomain> <87im4ds2su.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <87im4ds2su.fsf@gnu.org> User-Agent: Mutt/1.10.1 (2018-07-13) X-Proofpoint-ORIG-GUID: XqPFEycguuu0Mme1BYj6P-hCtKRFXTir X-Proofpoint-GUID: XqPFEycguuu0Mme1BYj6P-hCtKRFXTir X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391, 18.0.761 definitions=2021-04-23_14:2021-04-23, 2021-04-23 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 impostorscore=0 spamscore=0 lowpriorityscore=0 malwarescore=0 bulkscore=0 clxscore=1034 priorityscore=1501 adultscore=0 phishscore=0 mlxlogscore=999 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2104060000 definitions=main-2104240021 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: , Reply-To: Bengt Richter Cc: Mathieu Othacehe , 47889@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=1619234712; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: 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=5K9JCEoDptLhMoawhJ1e3u22gvO9zhXRXX6FV7C0WnA=; b=Xdynzk2HWwRsRrxfW6cMR66Be9YFG9inqDSWNRaJQ1Y8kMn8lasdy6LkHMiaQ81C5F9ZVz C1J2VjTDez2m2+qDd99c5W8Q+ilFvfgA5bu7DcKNnxSlnDu15udcuEqCb2ByFxvW6daA8d 0u0b/7d1OoDB+nboB6FUDJ4zLsIcZfxsxc+mV1OkNd1deKP1+Uqb0l4LKBhSkyaSOEU5t7 dU5BVV8Aowko5xmNOKRe8q+WKHnYSCVDWRT2GFDmlqXOHgK9frzBZd71jvGaFrBpIUvzL1 xsYbMdBQC4GokW0QSO44lz5PSTnf1jRgKAkLETr+VHV5rr8aLdQgpotpAbBBnw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1619234712; a=rsa-sha256; cv=none; b=GcV7We6D30eURoddQ/vbiyPW0l7PqoAb4diC/oBoZNqcqdQkLgM8t0hGMF7p6mukJmlC7R DrG65K6Zg19ORc+lIvPnVqS+ymjyF8z1p/nkShlSnFUywNNRXC+a4+nHL3AxH4uAoTbMXB 7IOjaeAZxKe/+uI19tL5F1J9nG8xK65xwGze/Ejs+VaQKCyeOy4DcGhsV3MwuzeSTjZ6jA uI6doN/FfPhUz8bs4D9X79XgCEY0FDU4sC+QdQey77AaMSByGWaWL2YZe2fp5v8MYoqmw+ Gl6XbE9FkXgatbDY/cJkK3o2jPZVlrEDFVJ+mZgMP50kubKk578+whmd/f/wNA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; 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: -1.94 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; 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: 1F4831B2D0 X-Spam-Score: -1.94 X-Migadu-Scanner: scn0.migadu.com X-TUID: xGpGTJkM+Aqa Hi Ludo, Florian, On +2021-04-23 12:39:13 +0200, Ludovic Courtès wrote: > Hi Florian, > > (Cc: Mathieu.) > > "pelzflorian (Florian Pelz)" skribis: > > > On Thu, Apr 22, 2021 at 03:28:39PM +0200, Ludovic Courtès wrote: > >> There’s no EFI (vfat) partition here. Is it an EFI machine? > >> > >> Is /boot/efi mounted when you boot the installation image? > > > > No because there is no EFI partition. If I create one and restart the > > installer, then it is *not* mounted either, only /mnt/boot/efi later > > during the install. (I believe since the installer is installed as on > > an external medium, it does not need an EFI partition.) > > > > I had booted the install image via UEFI boot and had expected auto > > partitioning and the default configuration to do the right thing. > > The installer determines whether it’s doing a UEFI installation like so: > > (define (efi-installation?) > "Return #t if an EFI installation should be performed, #f otherwise." > (file-exists? "/sys/firmware/efi")) > > It uses that to determine whether to create an EFI System Partition > (ESP) and whether to use ‘grub-efi-bootloader’. > How does that work if you want to mount an external USB disk as the target of your installation partitioning and formatting etc, but which may be intended for another laptop with a different BIOS booting in a different mode than your installer was booted into? (Maybe plug the finished USB disk into another laptop? USB C3.1 is fast enough if connected to a good SSD cassette). I.e., suppose your installer machine was booted UEFI but you want the target disk to be legacy MBR booted on a laptop that can only do that, loading grub2 as embedded in the target disk? Or vice versa? I'd like an interactive install, maybe selecting a target disk something like --8<---------------cut here---------------start------------->8--- $ select choice in $(lsblk -o kname,model,serial|tr -s ' ' _); do break;done 1) KNAME_MODEL_SERIAL 6) dm-0_ 2) sdb_Ultra_Fit_XXXXXXXXXXXXXXXXXXXX 7) nvme0n1_Samsung_SSD_970_EVO_Plus_500GB_XXXXXXXXXXXXXXX 3) sdb1_ 8) nvme0n1p1_ 4) sdb2_ 9) nvme0n1p2_ 5) sr0_USB_SCSI_CD-ROM_XXXXXXXXXXXXXXXX #? 2 $ echo "$choice" sdb_Ultra_Fit_XXXXXXXXXXXXXXXXXXXX --8<---------------cut here---------------end--------------->8--- so then the installation script can continue and mount the associated disk device --8<---------------cut here---------------start------------->8--- $ echo "$choice"|cut -d _ -f1 sdb --8<---------------cut here---------------end--------------->8--- It seems like the /sys/... file system that would show whether the disk is EFI-bootable will be determined by booting the very disk image we are trying to create -- both by its content (MBR and/or GPT, and what bootloader + .cfg, etc) and the BIOS trying to boot it. Sorry for the noise if I am missing some context. > Did it create an ESP in your case? > > I’m not entirely sure how it decides between GPT and DOS, though; > Mathieu? > > We should add UEFI installation tests using OVMF. > > Thanks, > Ludo’. > > > -- Regards, Bengt Richter