From unknown Tue Jun 17 01:38:47 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#35380 <35380@debbugs.gnu.org> To: bug#35380 <35380@debbugs.gnu.org> Subject: Status: disk-image fails to install efi grub Reply-To: bug#35380 <35380@debbugs.gnu.org> Date: Tue, 17 Jun 2025 08:38:47 +0000 retitle 35380 disk-image fails to install efi grub reassign 35380 guix submitter 35380 rendaw <7e9wc56emjakcm@s.rendaw.me> severity 35380 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 22 12:06:26 2019 Received: (at submit) by debbugs.gnu.org; 22 Apr 2019 16:06:26 +0000 Received: from localhost ([127.0.0.1]:51322 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hIbSc-0002zP-8e for submit@debbugs.gnu.org; Mon, 22 Apr 2019 12:06:26 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:37457) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <7e9wc56emjakcm@s.rendaw.me>) id 1hIbSZ-0002z6-R4 for submit@debbugs.gnu.org; Mon, 22 Apr 2019 12:06:24 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 7E891200CF for ; Mon, 22 Apr 2019 12:06:18 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Mon, 22 Apr 2019 12:06:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rendaw.me; h=to :from:subject:message-id:date:mime-version:content-type :content-transfer-encoding; s=fm3; bh=QEcZ92qKK+Ufvr/G8Dl3myCC/A BwejLT3QfDLQi+1bk=; b=XlASGHotG3o4tYrVwETxFOqUQV5q6X9RBgcLdMCZD0 65D8ifUms0FYRH6wdhhaYBLiFyVK8bc7VL8dtgF1S4VwBLDDdEKig9AExcPU5ni1 Sk50ILVgX8aqQ7Ct7f+oBZUpwGQrD4CFdpbVtsBupwPKl7w1TbHILkbQjrHLLSX2 lniMYNbILT7m1qTWxjdY2T8yD2EpNEk5cgRU7RVSI/3bt2fFDMrbYGiHFYL0PDof NE+Y81lb2oV4ptBanfsb33zaF0H4T9d5PenLVffV0j5WJsszpg9FR1rmupLmYIzM Gm028dyvP76a5BjcDpTc3PPGP4vvAnrWB+z4GjM/3Tmg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=QEcZ92 qKK+Ufvr/G8Dl3myCC/ABwejLT3QfDLQi+1bk=; b=60pgjwGpyXAs8G0uTz4zuP sxIqOf7yCfqEcYAxDq1eQhU2mcvHinv7a4VasTwjH0y54dHJ2HcLLiclcLcROm6Z bmA41Wh/QPOLZmxX6DEGp3iLKg8dA+tstqy2uSX/6GAQND0mQ0D6y5OKAKXm1HVE /SjAbqQBqbNZoABZL/wJfKXssTUaX5+36VlF3OapX4e9CT3XgAnFyLl81fgIgd6m rcH8/XDLcPbVWMGP2/KQbveBTpmOZGigDktwk2AcayRdCgCxvUXHlBxQ3/gNgaXM xtR47BNU/MigMA4jT4lUCXRhTuVkfFScREmOxkuMN86hCNcjujl3hu7AIW+qoIqQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrgeeigdelfecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepvffhuffkffgfgggtgfesthejredttd efjeenucfhrhhomheprhgvnhgurgifuceojegvleiftgehiegvmhhjrghktghmsehsrdhr vghnuggrfidrmhgvqeenucfkphepuddukedrvdegfedrvdefiedrudeileenucfrrghrrg hmpehmrghilhhfrhhomhepjegvleiftgehiegvmhhjrghktghmsehsrdhrvghnuggrfidr mhgvnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from [192.168.1.35] (y236169.dynamic.ppp.asahi-net.or.jp [118.243.236.169]) by mail.messagingengine.com (Postfix) with ESMTPA id 9AFB5103C8 for ; Mon, 22 Apr 2019 12:06:17 -0400 (EDT) To: submit@debbugs.gnu.org From: rendaw <7e9wc56emjakcm@s.rendaw.me> Subject: disk-image fails to install efi grub Openpgp: preference=signencrypt Message-ID: <0935773a-1e21-9576-d569-f97e79ed13dd@s.rendaw.me> Date: Tue, 23 Apr 2019 01:06:15 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.3 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Package: guix Version: 0.16.0 This might be 2 bugs. I ran `guix pull` a few hours ago. I have a minimal system configuration: ``` (use-modules (gnu)) (operating-system (host-name "min1") (timezone "UTC") (locale "en_US.utf8") (bootloader (bootloader-configuration (bootloader grub-bootloader) )) (file-systems (cons (file-system (device (file-system-label "abcdefghijk")) (mount-point "/") (type "ext4")) %base-file-systems)) ) ``` This boots fine with: ``` qemu-system-x86_64 -m 1024 testimage ``` (after copying to testimage and doing chmod u+w) Changing it to use grub-efi-bootloader results in this error during build: ``` installing bootloader... /gnu/store/6zkimxsfyn0gdc7p4ikxlrhilpnpblsi-grub-efi-2.02/sbin/grub-install: error: /gnu/store/6zkimxsfyn0gdc7p4ikxlrhilpnpblsi-grub-efi-2.02/lib/grub/i386-pc/modinfo.sh doesn't exist. Please spe. Backtrace: 2 (primitive-load "/gnu/store/mkbilylx3l6c2y9pdckdiibcpwb?") In ./gnu/build/vm.scm: 534:6 1 (initialize-hard-disk "/dev/vda" #:bootloader-package _ ?) In unknown file: 0 (scm-error misc-error #f "~A" ("failed to install GRU?") ?) ERROR: In procedure scm-error: failed to install GRUB (EFI) boot program '/gnu/store/0m2ap3d4c9gl7chmsrh7ci7i5gy4bbl0-linux-vm-loader' terminated, rebooting [ 184.005459] Unregister pv shared memory for cpu 0 [ 184.006818] reboot: Restarting system [ 184.007498] reboot: machine restart successfully built /gnu/store/57smyxccd3965dzirpcjfdkljbv9mrpy-disk-image.drv /gnu/store/f90acaac9wvg61i6j3mgjfjvyd5p1yzg-disk-image ``` Bug 1: Even though there's a fairly serious error (bootloader failed to install) a broken image is produced and it exits with a success status code. Running with the same command above, qemu halts saying the drive isn't bootable, trying floppy disks, etc. Bug 2: So is it appears disk-image won't build with an EFI bootloader. I'm guessing that qemu is run with a bios boot image here, which is why grub's using i386-pc. I'm building the image for a UEFI machine and I don't want to disable UEFI so this is a blocker. From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 22 13:11:21 2019 Received: (at 35380) by debbugs.gnu.org; 22 Apr 2019 17:11:21 +0000 Received: from localhost ([127.0.0.1]:51493 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hIcTQ-0000YH-Oa for submit@debbugs.gnu.org; Mon, 22 Apr 2019 13:11:21 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:51287) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <7e9wc56emjakcm@s.rendaw.me>) id 1hIcTO-0000Y1-25 for 35380@debbugs.gnu.org; Mon, 22 Apr 2019 13:11:19 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 98FCC21650 for <35380@debbugs.gnu.org>; Mon, 22 Apr 2019 13:11:12 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Mon, 22 Apr 2019 13:11:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rendaw.me; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm3; bh=D ioKYmVlvYkL3bywUKcSGtql+I0GVt7kzeBcEy+zVyw=; b=MudbX5FbYb5bW5q1i 0K3XZZ8Td9PIZQjxf1z4mDMMOFB8ktZw6R/glrtGIAaW6zXTeebUCkhfl+wp6T9Z SkZZob3tPXMZVihJCNtvrqH6/gL0jyRqX9rTp9ly3+7RwSsYMtedBARBmdxWe3N2 ZoZsR4i4Ru65KFJB2Z/roe7LfI6UYO+AK96VE88xyP5f/O6J5kXGXa9nn5xsn1OD yapuXEkaPnHcjPDTh5fkHyQuzPSgakP3FI5sRVORJvolUQsS2CgEmWp8QvkXr48y w72oTyn6p6nVIupLTYpey8gnvqKpSsv8qXqcU/mkdUz6p8FANxbMlJu2WF7FR3Zd KzCEw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=DioKYmVlvYkL3bywUKcSGtql+I0GVt7kzeBcEy+zV yw=; b=tMkZcCO5pancAJElPY6bMh6xezMflqQWdCTEM7pgHf8zAIp2Wl+NFRfld Dv2Y/tAKwtObRKKIjjLlKH4lB5JpFS9opVkE1plZ827XzUk3DK/dPQZxxv8iAeEk Mikc6YqMIaqFoA7gFVk9c6RT470aikgXkOHD0hGvT1nc9N+gwbXSqCDn7ltdcnse 0G4LvuU6j0GwZcA4IyC6qY7fE2PoO59av0TFs6uDeVyx5PO64aBn9/8ynPY5IzK4 RrWBv+LGKEp5+td9zTk0qe4UkoMwwOIU0UBoRVN++15oFbW7P5upL46g+9IsGeAu 3w3P3xwxwjZJgYrCSSCB8ep93bs8w== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrgeeigddutdehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvfhfhffkffgfgggjtgfgsehtke ertddtfeejnecuhfhrohhmpehrvghnuggrficuoeejvgelfigtheeivghmjhgrkhgtmhes shdrrhgvnhgurgifrdhmvgeqnecuffhomhgrihhnpehgnhhurdhorhhgpdhqvghmuhdroh hrghenucfkphepuddukedrvdegfedrvdefiedrudeileenucfrrghrrghmpehmrghilhhf rhhomhepjegvleiftgehiegvmhhjrghktghmsehsrdhrvghnuggrfidrmhgvnecuvehluh hsthgvrhfuihiivgeptd X-ME-Proxy: Received: from [192.168.1.35] (y236169.dynamic.ppp.asahi-net.or.jp [118.243.236.169]) by mail.messagingengine.com (Postfix) with ESMTPA id 928FA103CC for <35380@debbugs.gnu.org>; Mon, 22 Apr 2019 13:11:11 -0400 (EDT) Subject: Re: bug#35380: Acknowledgement (disk-image fails to install efi grub) To: 35380@debbugs.gnu.org References: <0935773a-1e21-9576-d569-f97e79ed13dd@s.rendaw.me> From: rendaw <7e9wc56emjakcm@s.rendaw.me> Message-ID: <3f187d7f-c664-ebc1-4f6d-6b4537df92a8@s.rendaw.me> Date: Tue, 23 Apr 2019 02:11:09 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.3 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 35380 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On 4/23/19 1:07 AM, GNU bug Tracking System wrote: > Thank you for filing a new bug report with debbugs.gnu.org. > > This is an automatically generated reply to let you know your message > has been received. > > Your message is being forwarded to the package maintainers and other > interested parties for their attention; they will reply in due course. > > Your message has been sent to the package maintainer(s): > bug-guix@gnu.org > > If you wish to submit further information on this problem, please > send it to 35380@debbugs.gnu.org. > > Please do not send mail to help-debbugs@gnu.org unless you wish > to report a problem with the Bug-tracking system. > I ran guix pull and rebuilt the image, and now see this error: ``` installing bootloader... Backtrace:            1 (primitive-load "/gnu/store/chp5kal8skdfnz8p4xcr9v5x80p?") In ./gnu/build/vm.scm:     552:6  0 (initialize-hard-disk "/dev/vda" #:bootloader-package _ ?) ./gnu/build/vm.scm:552:6: In procedure initialize-hard-disk: Throw to key `srfi-34' with args `(#) id 1hJZzi-0002Zd-WB for submit@debbugs.gnu.org; Thu, 25 Apr 2019 04:44:39 -0400 Received: from eggs.gnu.org ([209.51.188.92]:43217) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hJZzh-0002ZR-Nm for 35380-done@debbugs.gnu.org; Thu, 25 Apr 2019 04:44:38 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:47243) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hJZzc-0003x1-6R; Thu, 25 Apr 2019 04:44:32 -0400 Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=48046 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hJZzb-00054R-NO; Thu, 25 Apr 2019 04:44:32 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: rendaw <7e9wc56emjakcm@s.rendaw.me> Subject: Re: bug#35380: disk-image fails to install efi grub References: <0935773a-1e21-9576-d569-f97e79ed13dd@s.rendaw.me> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 6 =?utf-8?Q?Flor=C3=A9al?= an 227 de la =?utf-8?Q?R?= =?utf-8?Q?=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Thu, 25 Apr 2019 10:44:29 +0200 In-Reply-To: <0935773a-1e21-9576-d569-f97e79ed13dd@s.rendaw.me> (rendaw's message of "Tue, 23 Apr 2019 01:06:15 +0900") Message-ID: <87a7gesccy.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 35380-done Cc: 35380-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi rendaw, rendaw <7e9wc56emjakcm@s.rendaw.me> skribis: > Bug 2: So is it appears disk-image won't build with an EFI bootloader. > I'm guessing that qemu is run with a bios boot image here, which is why > grub's using i386-pc. Exactly: currently QEMU is run with a plain old BIOS, and not with the UEFI firmware, so what you want is not implemented yet (see the comment in gnu/system/vm.scm:799). I=E2=80=99m closing this bug, but you can open a wishlist item about it if = you want! Thanks, Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 25 06:27:26 2019 Received: (at 35380-done) by debbugs.gnu.org; 25 Apr 2019 10:27:26 +0000 Received: from localhost ([127.0.0.1]:57570 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hJbbC-000552-3E for submit@debbugs.gnu.org; Thu, 25 Apr 2019 06:27:26 -0400 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]:50251) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <7e9wc56emjakcm@s.rendaw.me>) id 1hJbbA-00054p-Fb for 35380-done@debbugs.gnu.org; Thu, 25 Apr 2019 06:27:25 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id BFAEA6B4; Thu, 25 Apr 2019 06:27:18 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Thu, 25 Apr 2019 06:27:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rendaw.me; h= subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm3; bh=G Mt36yNqARlDOZOJzZy9JBWYS/hAFC89ubYaweiVFro=; b=VvRG4YBoR61Bqaveg q+OU8Zg+CTLBvZsXVi+yeTYK7+KFSRR7gBoxJsYxf2Sqdxl31ti3xIngnt5zdlK1 MWK7332q06Akk9OS16Ud3hlLDNdHbIEOSdIsdkdtNTrMTHCCz3lKjEFy0BgAwLQ4 3VvG4NUeJVr8b+UFDSryuFTB0LuqeVCpCvL/MxfsMJF3YiNETOQQv+eDXS3RiIjw dpDk9TTVSdX6yXmb3/f7M8qQyZDuXabyryAY8Jda9n0Ihsh0sJM37XmDCJYbYU3n 2U0ar1Ut5VLdeCgFGGy85A/wEp/DPRGjYzB7jyhzH0G+HGtBc2tkJ0WdM22XlKO6 UPvWA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=GMt36yNqARlDOZOJzZy9JBWYS/hAFC89ubYaweiVF ro=; b=cA3rdebhq2HA/Mp3CEPH7jua6cI263K3rYr29YPho1KEMobRlt2F8hv8I 8cWlN5cEXAcElljudHabhNmnL5nDoHASTbtgYCwv3X/2xyQm1/wAh1HHIB3CvYZn JJKlBRVYhgySAw6K7S84oH6fn0m25OTmONqc3Q8zeTxK2HLlS/H1zWLMUjWYu4wK m13NIDERKjpXQUvOCYP9Vgb9YUR4IOGqo13RFp3cTH8Bbag7WeZm75nmlsKSmc1d oG7q7Wn2H8kjwGbHSJ6pR57ifl5u+syNcHgaK9fk6wEJ9WCapMvrRKVOvrgXKCjk n1hGzfDEicCapmMbKEgt7brfNZBrg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrheeggddvjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefuvfhfhffkffgfgggjtgfgsehtkeertddtfeejnecuhfhrohhmpehrvghnuggr ficuoeejvgelfigtheeivghmjhgrkhgtmhesshdrrhgvnhgurgifrdhmvgeqnecukfhppe duudekrddvgeefrddvfeeirdduieelnecurfgrrhgrmhepmhgrihhlfhhrohhmpeejvgel figtheeivghmjhgrkhgtmhesshdrrhgvnhgurgifrdhmvgenucevlhhushhtvghrufhiii gvpedt X-ME-Proxy: Received: from [192.168.1.35] (y236169.dynamic.ppp.asahi-net.or.jp [118.243.236.169]) by mail.messagingengine.com (Postfix) with ESMTPA id 4CDB4E4122; Thu, 25 Apr 2019 06:27:17 -0400 (EDT) Subject: Re: bug#35380: disk-image fails to install efi grub To: =?UTF-8?Q?Ludovic_Court=c3=a8s?= References: <0935773a-1e21-9576-d569-f97e79ed13dd@s.rendaw.me> <87a7gesccy.fsf@gnu.org> From: rendaw <7e9wc56emjakcm@s.rendaw.me> Message-ID: <323096f6-9382-c3fd-1dc5-486c4737b12f@s.rendaw.me> Date: Thu, 25 Apr 2019 19:27:14 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.3 MIME-Version: 1.0 In-Reply-To: <87a7gesccy.fsf@gnu.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 35380-done Cc: 35380-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On 4/25/19 5:44 PM, Ludovic Courtès wrote: > Hi rendaw, > > rendaw <7e9wc56emjakcm@s.rendaw.me> skribis: > >> Bug 2: So is it appears disk-image won't build with an EFI bootloader. >> I'm guessing that qemu is run with a bios boot image here, which is why >> grub's using i386-pc. > Exactly: currently QEMU is run with a plain old BIOS, and not with the > UEFI firmware, so what you want is not implemented yet (see the comment > in gnu/system/vm.scm:799). > > I’m closing this bug, but you can open a wishlist item about it if you > want! > > Thanks, > Ludo’. I'm not going to comment on the wishlist thing, but this seems like a fairly huge problem: 1. The documentation doesn't mention this anywhere!  Not in the bootloader docs, not in the disk-image docs, not in the "limitations", not in "hardware considerations" 2. I've spent several _days_ now digging through Guix source code and never found that message.  3. The build still completes with a successful exit code.  The only way to find out the image doesn't have a bootloader (-> is unusable) is to try to boot it From debbugs-submit-bounces@debbugs.gnu.org Wed May 01 16:20:08 2019 Received: (at 35380-done) by debbugs.gnu.org; 1 May 2019 20:20:08 +0000 Received: from localhost ([127.0.0.1]:45021 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hLvi4-0006SQ-DR for submit@debbugs.gnu.org; Wed, 01 May 2019 16:20:08 -0400 Received: from eggs.gnu.org ([209.51.188.92]:35981) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hLvi2-0006Rm-SM for 35380-done@debbugs.gnu.org; Wed, 01 May 2019 16:20:07 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:60552) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hLvhw-0006gl-2d; Wed, 01 May 2019 16:20:01 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=48870 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hLvhv-0003YG-HX; Wed, 01 May 2019 16:19:59 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: rendaw <7e9wc56emjakcm@s.rendaw.me> Subject: Re: bug#35380: disk-image fails to install efi grub References: <0935773a-1e21-9576-d569-f97e79ed13dd@s.rendaw.me> <87a7gesccy.fsf@gnu.org> <323096f6-9382-c3fd-1dc5-486c4737b12f@s.rendaw.me> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 12 =?utf-8?Q?Flor=C3=A9al?= an 227 de la =?utf-8?Q?R?= =?utf-8?Q?=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Wed, 01 May 2019 22:19:58 +0200 In-Reply-To: <323096f6-9382-c3fd-1dc5-486c4737b12f@s.rendaw.me> (rendaw's message of "Thu, 25 Apr 2019 19:27:14 +0900") Message-ID: <87d0l2exld.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 35380-done Cc: 35380-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi rendaw, rendaw <7e9wc56emjakcm@s.rendaw.me> skribis: > On 4/25/19 5:44 PM, Ludovic Court=C3=A8s wrote: [...] >> Exactly: currently QEMU is run with a plain old BIOS, and not with the >> UEFI firmware, so what you want is not implemented yet (see the comment >> in gnu/system/vm.scm:799). >> >> I=E2=80=99m closing this bug, but you can open a wishlist item about it = if you >> want! >> >> Thanks, >> Ludo=E2=80=99. > > I'm not going to comment on the wishlist thing, but this seems like a > fairly huge problem: > > 1. The documentation doesn't mention this anywhere!=C2=A0 Not in the > bootloader docs, not in the disk-image docs, not in the "limitations", > not in "hardware considerations" > > 2. I've spent several _days_ now digging through Guix source code and > never found that message.=C2=A0 I=E2=80=99m sorry to hear that. I guess that the reason the documentation doesn=E2=80=99t mention it is that users didn=E2=80=99t find it all that im= portant. My guess is that to many of us, using a VM is a way to test an OS, and it doesn=E2=80=99t matter in that context whether the emulated machine uses= a PC BIOS or UEFI. I understand that it does matter in some cases, so I agree we should support it. I don=E2=80=99t know exactly what it would take, but if you ha= ve ideas, they=E2=80=99d be welcome. > 3. The build still completes with a successful exit code.=C2=A0 The only = way > to find out the image doesn't have a bootloader (-> is unusable) is to > try to boot it Yes, that=E2=80=99s an unfortunate bug reported here: . Thanks, Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Thu May 02 05:05:21 2019 Received: (at 35380-done) by debbugs.gnu.org; 2 May 2019 09:05:22 +0000 Received: from localhost ([127.0.0.1]:45575 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hM7eb-0001Rj-9r for submit@debbugs.gnu.org; Thu, 02 May 2019 05:05:21 -0400 Received: from mail-ed1-f41.google.com ([209.85.208.41]:39747) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hM7eY-0001RW-K9 for 35380-done@debbugs.gnu.org; Thu, 02 May 2019 05:05:19 -0400 Received: by mail-ed1-f41.google.com with SMTP id e24so1427536edq.6 for <35380-done@debbugs.gnu.org>; Thu, 02 May 2019 02:05:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=vUmMDup5y3uUwCWk1Gu0OVs27L6WR4CULfND3SQmBj8=; b=uyz3oEV0PvPFEgS8/wsYLnb9AIeU+XHbNh5TTE9dPJ7PA0n+Q792JfMR3chfOHKkOs xK46EsWRznHoqqW1iqQ2FxvmWBuPUi4IeAj2gPiUergpy649UzX9titXUPfL9IvieU9g JRpUSnFinCsMNk0iyIjQDpYB5MH+DokCmxSp3vHkaFf63NpcV7uR9CICUEnSIp5twnGI SarHHyNP0I0G50zAO5ff6KL93+JEJQVHEFbVp+QppiTrNjb5VgLZpmMqvvIzIwIOgueW 4LIftbzGQvPakmyDdSwnL83u1qnRzrxHhGjYgqIoSTDkkzATXVvkQQoYXAaDhvqHq7wD ov3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=vUmMDup5y3uUwCWk1Gu0OVs27L6WR4CULfND3SQmBj8=; b=ZAochua0+6pqYmrxg1FzkNOb0dmE/dBlOgUFIxA6dpRk73m1zfmisKtnZ8FPPd1wUm JBOXnvxsfZp1RhMMwE3qvdrO+eqXaEjHfb34Pfq0xWecvHBNOLzq+pgZLamcM3yhRvOm uTL8Xg9Aw5HqrfEgwWCKlTnBGC7LESVAILOx7N/UpnkjJfFImx7AoDP66k/LHIjlPVQx YYjC+1iDwV0br89tbxNgS2C/PoRwDZ4wVc/j4mXUMpR73BMUJV/Z3GHeCGXjv5FM11HO tHdPMnlQKxJxHtZoW4IjKkK2RJ0T5HXG8aM576Vzl1f35xZK+q6R8imU8ISo5mKf0V14 nEcg== X-Gm-Message-State: APjAAAXFcozbScRgv+l+vBpZPHIfWvHKezvrNEOIX/JYG3ItBe/bYdWP 7kVsRjPFxOsCsn6RqQ7iYAgLy4tXbdEgO/tXVw== X-Google-Smtp-Source: APXvYqzPqfXZK2kVf5joFduIl+ejbBWds88AkWTzY0qLu/Yq58H0p7rNMTOtndluK0vczXnw4gOJhKQP6Kqoi0Vm+nw= X-Received: by 2002:a50:aad9:: with SMTP id r25mr1752412edc.266.1556787912576; Thu, 02 May 2019 02:05:12 -0700 (PDT) MIME-Version: 1.0 References: <0935773a-1e21-9576-d569-f97e79ed13dd@s.rendaw.me> <87a7gesccy.fsf@gnu.org> <323096f6-9382-c3fd-1dc5-486c4737b12f@s.rendaw.me> <87d0l2exld.fsf@gnu.org> In-Reply-To: <87d0l2exld.fsf@gnu.org> From: =?UTF-8?Q?G=C3=A1bor_Boskovits?= Date: Thu, 2 May 2019 11:05:00 +0200 Message-ID: Subject: Re: bug#35380: disk-image fails to install efi grub To: =?UTF-8?Q?Ludovic_Court=C3=A8s?= Content-Type: multipart/alternative; boundary="0000000000008515750587e3eea6" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 35380-done Cc: 35380-done@debbugs.gnu.org, rendaw <7e9wc56emjakcm@s.rendaw.me> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --0000000000008515750587e3eea6 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello, Ludovic Court=C3=A8s ezt =C3=ADrta (id=C5=91pont: 2019. m=C3= =A1j. 1., Sze, 22:21): > Hi rendaw, > > rendaw <7e9wc56emjakcm@s.rendaw.me> skribis: > > > On 4/25/19 5:44 PM, Ludovic Court=C3=A8s wrote: > > [...] > > >> Exactly: currently QEMU is run with a plain old BIOS, and not with the > >> UEFI firmware, so what you want is not implemented yet (see the commen= t > >> in gnu/system/vm.scm:799). > >> > >> I=E2=80=99m closing this bug, but you can open a wishlist item about i= t if you > >> want! > >> > >> Thanks, > >> Ludo=E2=80=99. > > > > I'm not going to comment on the wishlist thing, but this seems like a > > fairly huge problem: > > > > 1. The documentation doesn't mention this anywhere! Not in the > > bootloader docs, not in the disk-image docs, not in the "limitations", > > not in "hardware considerations" > > > > 2. I've spent several _days_ now digging through Guix source code and > > never found that message. > > I=E2=80=99m sorry to hear that. I guess that the reason the documentatio= n > doesn=E2=80=99t mention it is that users didn=E2=80=99t find it all that = important. > My guess is that to many of us, using a VM is a way to test an OS, and > it doesn=E2=80=99t matter in that context whether the emulated machine us= es a PC > BIOS or UEFI. > > I understand that it does matter in some cases, so I agree we should > support it. I don=E2=80=99t know exactly what it would take, but if you = have > ideas, they=E2=80=99d be welcome. > > I've already looked into that earlier, and supporting this usecase would not be so hard. We have ovmf after all, and we could stat qemu in efi mode. It would not be so hard to get the thing in place to do an emergency efi booting setup. Why I did not feel comfortable to carry on work in this direction, is that we should associate a state with the VM-s, namely the file contatining the nvram variables of the efi firmware. This is needed for full support, but not needed to create a bootable system. Wdyt? We would also need an efi installation procedure, but this would also mean that we could create an efi install system test, which would be really nice indeed. Also the parameters should be extended to be able to select if we would like to generate a bios or and efi image. These are the thing from the top of my head, but it might well be that I am missing something. > 3. The build still completes with a successful exit code. The only way > > to find out the image doesn't have a bootloader (-> is unusable) is to > > try to boot it > > Yes, that=E2=80=99s an unfortunate bug reported here: > . > > Thanks, > Ludo=E2=80=99. > > > > Best regards, g_bor --0000000000008515750587e3eea6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,

Ludovic Court=C3=A8s <ludo@gnu.org> ezt =C3=ADrta (id=C5=91pont: 2019. m=C3= =A1j. 1., Sze, 22:21):
Hi rendaw,

rendaw <= 7e9wc56emjakcm@s.rendaw.me> skribis:

> On 4/25/19 5:44 PM, Ludovic Court=C3=A8s wrote:

[...]

>> Exactly: currently QEMU is run with a plain old BIOS, and not with= the
>> UEFI firmware, so what you want is not implemented yet (see the co= mment
>> in gnu/system/vm.scm:799).
>>
>> I=E2=80=99m closing this bug, but you can open a wishlist item abo= ut it if you
>> want!
>>
>> Thanks,
>> Ludo=E2=80=99.
>
> I'm not going to comment on the wishlist thing, but this seems lik= e a
> fairly huge problem:
>
> 1. The documentation doesn't mention this anywhere!=C2=A0 Not in t= he
> bootloader docs, not in the disk-image docs, not in the "limitati= ons",
> not in "hardware considerations"
>
> 2. I've spent several _days_ now digging through Guix source code = and
> never found that message.=C2=A0

I=E2=80=99m sorry to hear that.=C2=A0 I guess that the reason the documenta= tion
doesn=E2=80=99t mention it is that users didn=E2=80=99t find it all that im= portant.
My guess is that to many of us, using a VM is a way to test an OS, and
it doesn=E2=80=99t matter in that context whether the emulated machine uses= a PC
BIOS or UEFI.

I understand that it does matter in some cases, so I agree we should
support it.=C2=A0 I don=E2=80=99t know exactly what it would take, but if y= ou have
ideas, they=E2=80=99d be welcome.

=C2=A0
I've already looked into that ea= rlier, and supporting this usecase would not be
so hard. We have = ovmf after all, and we could stat qemu in efi mode. It would not
<= div>be so hard to get the thing in place to do an emergency efi booting set= up.
Why I did not feel comfortable to carry on work in this direc= tion, is that we should
associate a state with the VM-s, namely t= he file contatining the nvram variables of
the efi firmware. This= is needed for full support, but not needed to create a bootable
= system. Wdyt?

We would also need an efi instal= lation procedure, but this would also mean that we
could create a= n efi install system test, which would be really nice indeed.

Also the parameters should be extended to be able to select= if we would like to generate
a bios or and efi image.
<= div>
These are the thing from the top of my head, but it migh= t well be that I am missing something.

> 3. The build still completes with a successful exit code.=C2=A0 The on= ly way
> to find out the image doesn't have a bootloader (-> is unusable= ) is to
> try to boot it

Yes, that=E2=80=99s an unfortunate bug reported here:
<https://issues.guix.info/issue/34276>.

Thanks,
Ludo=E2=80=99.



Best regards,
g_bor
--0000000000008515750587e3eea6-- From debbugs-submit-bounces@debbugs.gnu.org Thu May 02 11:17:04 2019 Received: (at 35380-done) by debbugs.gnu.org; 2 May 2019 15:17:04 +0000 Received: from localhost ([127.0.0.1]:46714 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hMDSK-000431-Cr for submit@debbugs.gnu.org; Thu, 02 May 2019 11:17:04 -0400 Received: from eggs.gnu.org ([209.51.188.92]:43195) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hMDSG-00042S-Cz for 35380-done@debbugs.gnu.org; Thu, 02 May 2019 11:17:01 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:45519) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hMDSB-0007EU-0v; Thu, 02 May 2019 11:16:55 -0400 Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=52328 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hMDSA-0006IB-Cy; Thu, 02 May 2019 11:16:54 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: =?utf-8?Q?G=C3=A1bor?= Boskovits Subject: Re: bug#35380: disk-image fails to install efi grub References: <0935773a-1e21-9576-d569-f97e79ed13dd@s.rendaw.me> <87a7gesccy.fsf@gnu.org> <323096f6-9382-c3fd-1dc5-486c4737b12f@s.rendaw.me> <87d0l2exld.fsf@gnu.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 13 =?utf-8?Q?Flor=C3=A9al?= an 227 de la =?utf-8?Q?R?= =?utf-8?Q?=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Thu, 02 May 2019 17:16:52 +0200 In-Reply-To: (=?utf-8?Q?=22G=C3=A1bor?= Boskovits"'s message of "Thu, 2 May 2019 11:05:00 +0200") Message-ID: <875zqsvqcb.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 35380-done Cc: 35380-done@debbugs.gnu.org, Marius Bakke , rendaw <7e9wc56emjakcm@s.rendaw.me> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hello, G=C3=A1bor Boskovits skribis: > I've already looked into that earlier, and supporting this usecase would > not be > so hard. We have ovmf after all, and we could stat qemu in efi mode. It > would not > be so hard to get the thing in place to do an emergency efi booting setup. > Why I did not feel comfortable to carry on work in this direction, is that > we should > associate a state with the VM-s, namely the file contatining the nvram > variables of > the efi firmware. This is needed for full support, but not needed to crea= te > a bootable > system. Wdyt? I suppose the file that contains variables could be temporary or read-only in the store? I=E2=80=99m not familiar with all this. ISTR that Marius looked into it ba= ck then, so perhaps there are ideas to share? Thanks, Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Thu May 02 18:18:07 2019 Received: (at 35380-done) by debbugs.gnu.org; 2 May 2019 22:18:07 +0000 Received: from localhost ([127.0.0.1]:47224 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hMK1m-0001mf-Ri for submit@debbugs.gnu.org; Thu, 02 May 2019 18:18:07 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:55967) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hMK1j-0001mA-O7 for 35380-done@debbugs.gnu.org; Thu, 02 May 2019 18:18:05 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id A75E725A8E; Thu, 2 May 2019 18:17:58 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Thu, 02 May 2019 18:17:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-type; s=fm2; bh=kcBTnkQUlCKBDK8bvCw4D2mO4O NKK1osGDKaP+suRPU=; b=aMZP5nz3AnmXbLNWSYGxydfJY3IErMrzrym+6dTq5T xJ4nrQ9G1GJ2rNq2W+PUhXWOX5Yl9tSK2uGfWvB1vpY4fVrxd57ZSTMD1GP+14o1 LXAsNJ4Ef1Z6peuCLhz7/gGW29Xzwn15b9wv7i268r47qKaF9aWuqx4JwVXZf3m+ fEDySxDtN0ry7IHlBhfpS49edDfsWaJ1VnpjgCQhZ2AZVtL+ytphuumlba3eiLjF jPmrDWYGxEHwoMteclQi4xxphSodXtlGpRQxelO9iLnXxQ4Qsn1EFhjX5vDL+qhB mCctBaJCeVY+dTHzrTt65/OxuTyvi2S7A6FJXD247Uow== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=kcBTnk QUlCKBDK8bvCw4D2mO4ONKK1osGDKaP+suRPU=; b=O1knXOVbFGL0ewTBIkhqdG iT2Up66QdLNq8IskF3STAPnb97Zjm2CLqZYQMZ67tiXBuAT+dTjigx4TkOv7ncQH DqGHojlLcU1/6W0/D5G78MMRPndHK8wL354C5xIM6VXK3bHIbyQQlIyBlNnJuxUM StrAo+ilNxvf8v4HXvFb/TLtIUrfHbREQYJklUCDLM1Wn9QW9rTiHmEZcdQ7ezhg VjAmVR7ft5GqV30/zFj7k7RDfjcVvI/K7Pu55PAl3PmRWmJYSxP0dK4+Q/wnhmg8 BollIvFyK7PS1IDyeQQRWej/KXeavQZqZWLVHwLKRIor1JZH044NwUKbH+c1qvIQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrjedtgddtkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffujghffgffkfggtgesghdtreertderjeenucfhrhhomhepofgrrhhiuhhs uceurghkkhgvuceomhgsrghkkhgvsehfrghsthhmrghilhdrtghomheqnecukfhppeeivd drudeirddvvdeirddugedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmsggrkhhkvges fhgrshhtmhgrihhlrdgtohhmnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from localhost (140.226.16.62.customer.cdi.no [62.16.226.140]) by mail.messagingengine.com (Postfix) with ESMTPA id B2C55E432B; Thu, 2 May 2019 18:17:57 -0400 (EDT) From: Marius Bakke To: Ludovic =?utf-8?Q?Court=C3=A8s?= , =?utf-8?Q?G=C3=A1bor?= Boskovits Subject: Re: bug#35380: disk-image fails to install efi grub In-Reply-To: <875zqsvqcb.fsf@gnu.org> References: <0935773a-1e21-9576-d569-f97e79ed13dd@s.rendaw.me> <87a7gesccy.fsf@gnu.org> <323096f6-9382-c3fd-1dc5-486c4737b12f@s.rendaw.me> <87d0l2exld.fsf@gnu.org> <875zqsvqcb.fsf@gnu.org> User-Agent: Notmuch/0.28.3 (https://notmuchmail.org) Emacs/26.2 (x86_64-pc-linux-gnu) Date: Fri, 03 May 2019 00:17:53 +0200 Message-ID: <87d0l0fqlq.fsf@fastmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 35380-done Cc: 35380-done@debbugs.gnu.org, rendaw <7e9wc56emjakcm@s.rendaw.me> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Ludovic Court=C3=A8s writes: > Hello, > > G=C3=A1bor Boskovits skribis: > >> I've already looked into that earlier, and supporting this usecase would >> not be >> so hard. We have ovmf after all, and we could stat qemu in efi mode. It >> would not >> be so hard to get the thing in place to do an emergency efi booting setu= p. >> Why I did not feel comfortable to carry on work in this direction, is th= at >> we should >> associate a state with the VM-s, namely the file contatining the nvram >> variables of >> the efi firmware. This is needed for full support, but not needed to cre= ate >> a bootable >> system. Wdyt? > > I suppose the file that contains variables could be temporary or > read-only in the store? Temporary yes, read only no :-) EFI firmwares are inherently stateful: bootloaders are *required* to update the NVRAM with the file name, UUID, and partition of the loader. That means you can't just take an operating system hard drive from one EFI system to another. The new host system won't know where to find the bootloader. You have to use `efibootmgr` or similar to create an entry for the hard drive in the firmware. Maybe some firmwares are smarter... One can launch a Guix EFI virtual machine "manually" by: qemu -bios $(guix build ovmf)/share/firmware/ovmf_x64.bin foo.img This will boot anything created by `guix system disk-image` because they contain a generic UEFI loader in a standard location (using grub-mkstandalone). Now if you try to use GRUB-EFI-BOOTLOADER inside this virtual machine, it will succeed, but complain that it cannot update the EFI boot entries, resulting in a VM that cannot boot. Copying the firmware file somewhere and making it writable will allow you to persist the installation, as long as you carry that firmware file around. Or you can create a dedicated file for the variables and use it with other firmware files -- but you can not boot the VM without it. I'm not sure what use case rendaw had in mind, can you elaborate?=20 It would be great to have UEFI support in the record, mainly for system tests, but I doubt that is what rendaw is after :-) --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAlzLbJEACgkQoqBt8qM6 VPouzgf+P+JoBcMyVqwd2Xa8jr3UiMEhAug5vijonbY5VQJ+Xiq2htT5ahj0KuPF iNMreLl2yWhFNVdprnbIYVrWplj1t2mf+I7dCGERK6+2FOmbq+fGW/gdXk21inOu sdlzl5XE8gPvGL51HjF8pQFkb8ZdUFVt69E9+7l9QncXyBMr4b+LYLuXp6dD0wDu 3PCg6dd1c17jUKQJ8mRLN6ZvdhCupdYycf2jBcwAJ6H6pNKA7fXVTDeN9Qy5Y/rS g/D50oacsunXutLuZcSKxMLtW2C/5O7b6BS9+OyXzIf97P6mjJDODkuFz3e79sAN BioYWZT0kfrnscUU4nEai6QAvQO9VA== =yl2h -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Fri May 03 09:18:16 2019 Received: (at 35380-done) by debbugs.gnu.org; 3 May 2019 13:18:16 +0000 Received: from localhost ([127.0.0.1]:48092 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hMY4u-0006Kv-0o for submit@debbugs.gnu.org; Fri, 03 May 2019 09:18:16 -0400 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:52351) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <7e9wc56emjakcm@s.rendaw.me>) id 1hMY4q-0006Kg-Aj for 35380-done@debbugs.gnu.org; Fri, 03 May 2019 09:18:12 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 73329671; Fri, 3 May 2019 09:18:06 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Fri, 03 May 2019 09:18:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rendaw.me; h= subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm3; bh=7 qySdQt1jm1P/ttTqd/oc0Zfsnyu11H8r0MePfBbBTg=; b=XOTxyK1iY7dEbLZoW xIDD2ytIZJlKVoWSOsBH3kFAFd8Xlzav4pfOn7m525LlPoAI2lszt+kjQnA8wYfo ZsKYK80XYWvB6tnFJY3rYeZtPIjpzjuJCBC5fG2Awowfzo2JOMWuNiq8ymCDvUCa J/vF4SXuwE7nl47BCX8aeqC5oLXMOsZ7xnbsU34BlkIbIKlevM04Du7wF2qndNFa zeAul7PE7oK6r4LFOfz+DbuhLkdfRzkbCjDeaVioJkjiWDknfRRAKQfi9kjSzx41 4iCyQ4FtwHWU5AQflJ4wuLvWk2rFYMQ9dCILdUXyirwKboTqsCg7oDN2pzNSash1 ZT7Uw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=7qySdQt1jm1P/ttTqd/oc0Zfsnyu11H8r0MePfBbB Tg=; b=epYJ5EtkGl/I9JnGMkmy2IitQuHZs2oPEuGq7titypPAj4f8KPQYX/hxv ZnSmsVhyUbiWWhPKABnqQBIROGL+QNc5PyZqo1Pfjd8UqsH0rGDKtxpb5k93g42T BPjAS9sponZFdc4KrQ5VWnYeHtdk9i9tczCwD8r4+MbsTdFaOB9Rr580d3tS1kAg suRHjinVisMAnW2DpvQbnMfojXxKUnLr8bY/mSj2zUK0B8z9iwGxFSqdIyffADOg Htuim8SOBxrEDoxwMuVdH64ZtxVM8OL+jGsYHWiQbv+kIon3Fa+OHPCfsirfW/OT 1/oXrpbmMjpCFKKHoTgp51N9SUG4A== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrjedugdeiiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefuvfhfhffkffgfgggjtgfgsehtkeertddtfeejnecuhfhrohhmpehrvghnuggr ficuoeejvgelfigtheeivghmjhgrkhgtmhesshdrrhgvnhgurgifrdhmvgeqnecukfhppe duudekrddvgeefrddvfeeirdduieelnecurfgrrhgrmhepmhgrihhlfhhrohhmpeejvgel figtheeivghmjhgrkhgtmhesshdrrhgvnhgurgifrdhmvgenucevlhhushhtvghrufhiii gvpedt X-ME-Proxy: Received: from [192.168.1.35] (y236169.dynamic.ppp.asahi-net.or.jp [118.243.236.169]) by mail.messagingengine.com (Postfix) with ESMTPA id 24368E4122; Fri, 3 May 2019 09:18:03 -0400 (EDT) Subject: Re: bug#35380: disk-image fails to install efi grub To: Marius Bakke , =?UTF-8?Q?Ludovic_Court=c3=a8s?= , =?UTF-8?Q?G=c3=a1bor_Boskovits?= References: <0935773a-1e21-9576-d569-f97e79ed13dd@s.rendaw.me> <87a7gesccy.fsf@gnu.org> <323096f6-9382-c3fd-1dc5-486c4737b12f@s.rendaw.me> <87d0l2exld.fsf@gnu.org> <875zqsvqcb.fsf@gnu.org> <87d0l0fqlq.fsf@fastmail.com> From: rendaw <7e9wc56emjakcm@s.rendaw.me> Message-ID: <2aac4477-7895-4dbe-0a54-24ff69d17de7@s.rendaw.me> Date: Fri, 3 May 2019 22:18:01 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.3 MIME-Version: 1.0 In-Reply-To: <87d0l0fqlq.fsf@fastmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 35380-done Cc: 35380-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On 5/3/19 7:17 AM, Marius Bakke wrote: > It would be great to have UEFI support in the record, > mainly for system tests, but I doubt that is what rendaw is after :-) Yeah, ideally I'd like secure boot from the flashed media but failing that I'd at least like to be moving closer to it (boot without having to enable legacy boot). > That means you can't just take an operating system hard drive from one > EFI system to another. I'm absolutely not an expert on UEFI, and it's likely I'm misinterpreting some of the more subtle points you wrote, but do you have more information on the NVRAM restriction?  I've found a fair amount of references to making secure boot and UEFI capable media (USB and CD) around the web so I'm surprised it's not possible to make a portable UEFI image.  Wouldn't that make it difficult to install UEFI bootloaders on blank systems? From debbugs-submit-bounces@debbugs.gnu.org Fri May 03 11:10:42 2019 Received: (at 35380-done) by debbugs.gnu.org; 3 May 2019 15:10:42 +0000 Received: from localhost ([127.0.0.1]:49315 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hMZph-0002rk-SG for submit@debbugs.gnu.org; Fri, 03 May 2019 11:10:42 -0400 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:32977) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hMZpd-0002rW-Mk for 35380-done@debbugs.gnu.org; Fri, 03 May 2019 11:10:38 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 9ECAC26536; Fri, 3 May 2019 11:10:32 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Fri, 03 May 2019 11:10:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-type; s=fm2; bh=z8C/ieTXE3z6oqjtRJv+fFXgmn iWqo4FkzHuRPz9If8=; b=F5dx3moC+XLeui3weVyLrpFFMUHjD2Ppoglz+EZvjR ++6cHvOcCOIC5krz5699I3XHvTslAQ9B1Fuyuj2GIrPAyRuTkOx4pc3uMqtlpKDc LXeCUE6chRZGtHzEEhfbZJJ2h3crnizkDotE/yAmA89lXDRdcKh3gW0AoftuBkU1 eEHmZQS+nUQp0KFWq68y5QxZI3AtJ8XD93cf4vU7Dqjw/ZndQBMSmLnLMjX+M3hh dpNcC2C6du3P8wY93tguKTLJ9fr21xIz4CcS4DoUuwUJwjoT2uf08ufpm6E7QI50 7JmwXfpxFEzpLH7pS09pPL0Zm8Ri3/EWv+aTppOlsjMg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=z8C/ie TXE3z6oqjtRJv+fFXgmniWqo4FkzHuRPz9If8=; b=AbJ7uCxlYNZwia7jIpsy1q pvv1UOprm0Lyh6zsV9/pYinLZTRkhO9vqXs6DZhglmyVZyyLkXkgwoJzJyO1KJTn FEnPIHQDuteP1EPeldhb2scHkYWjaZ+rYHWMCV1Yy+b1A2gugCmGUcL2GC0VmeF/ hoJr8ctxUsP/KgFE2WTXJH+EA73Uz/eZeYGWBpuGUf8euYf3oXlUXDafXh9OTsee t+GW3e1YByAepJEhcItEGu9Ty4cNgtvlQTldbc/eYzu4UrdjZeizjNM5sGOQnDSA TRbixiBhGKmO8fqD9mjsNQjQt4+ISy6BuOVQrV4w/GYqqhXokNxwTBuD9OwuI4bA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrjedugdekkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffujghffgffkfggtgesghdtreertderjeenucfhrhhomhepofgrrhhiuhhs uceurghkkhgvuceomhgsrghkkhgvsehfrghsthhmrghilhdrtghomheqnecuffhomhgrih hnpehgnhhurdhorhhgnecukfhppeeivddrudeirddvvdeirddugedtnecurfgrrhgrmhep mhgrihhlfhhrohhmpehmsggrkhhkvgesfhgrshhtmhgrihhlrdgtohhmnecuvehluhhsth gvrhfuihiivgeptd X-ME-Proxy: Received: from localhost (140.226.16.62.customer.cdi.no [62.16.226.140]) by mail.messagingengine.com (Postfix) with ESMTPA id 97244E44B6; Fri, 3 May 2019 11:10:31 -0400 (EDT) From: Marius Bakke To: rendaw <7e9wc56emjakcm@s.rendaw.me>, Ludovic =?utf-8?Q?Court=C3=A8s?= , =?utf-8?Q?G=C3=A1bor?= Boskovits Subject: Re: bug#35380: disk-image fails to install efi grub In-Reply-To: <2aac4477-7895-4dbe-0a54-24ff69d17de7@s.rendaw.me> References: <0935773a-1e21-9576-d569-f97e79ed13dd@s.rendaw.me> <87a7gesccy.fsf@gnu.org> <323096f6-9382-c3fd-1dc5-486c4737b12f@s.rendaw.me> <87d0l2exld.fsf@gnu.org> <875zqsvqcb.fsf@gnu.org> <87d0l0fqlq.fsf@fastmail.com> <2aac4477-7895-4dbe-0a54-24ff69d17de7@s.rendaw.me> User-Agent: Notmuch/0.28.3 (https://notmuchmail.org) Emacs/26.2 (x86_64-pc-linux-gnu) Date: Fri, 03 May 2019 17:10:29 +0200 Message-ID: <8736lvfuai.fsf@fastmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 35380-done Cc: 35380-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable rendaw <7e9wc56emjakcm@s.rendaw.me> writes: > On 5/3/19 7:17 AM, Marius Bakke wrote: >> It would be great to have UEFI support in the record, >> mainly for system tests, but I doubt that is what rendaw is after :-) > > Yeah, ideally I'd like secure boot from the flashed media but failing > that I'd at least like to be moving closer to it (boot without having to > enable legacy boot). I see. Do you know what is needed to enable secure boot with grub-efi? >> That means you can't just take an operating system hard drive from one >> EFI system to another. > > I'm absolutely not an expert on UEFI, and it's likely I'm > misinterpreting some of the more subtle points you wrote, but do you > have more information on the NVRAM restriction?=C2=A0 I've found a fair > amount of references to making secure boot and UEFI capable media (USB > and CD) around the web so I'm surprised it's not possible to make a > portable UEFI image.=C2=A0 Wouldn't that make it difficult to install UEFI > bootloaders on blank systems? To clarify: "grub-efi" will not work to make a portable UEFI installation. For that you need "grub-mkstandalone" and place the resulting executable in "/efi/boot/bootx64.efi" on your EFI System Partition, like Guix does for disk images: . It would be nice to make this procedure more generally accessible. Perhaps create a (grub-standalone-bootloader ...) procedure, similar to (grub-efi-bootloader)? Then it can be used to create portable EFI systems straight from your config.scm. Would you like to give it a go? --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAlzMWeUACgkQoqBt8qM6 VPpongf+LbIJGoXuGuePDVA9qUN7TnLxcPguAPp47OJn+yM453x6Jx7OVaXMWZro /F21ZvQw9QVALyuFDAT3g9fYCIA66DkFKNgpmL1vzZoTQLSdDPTFJk5/Ntv/3NUN Hek3o/w14u6Vwy4dyXtpIUSq45M8jycfYLcfikdrf2UZA2fA7MWPjpJSdtSXRjIv ILK8fukTshtl0uPKSIDfluXX6xyyYN2paYFWPBcwhJYthxqbI57ARqTWMLZl+kWH UpHqdFSbrwyfuSm3jhL+juQpsX2tWrOPcgxwL98RXiPfMhtYNdUcXjCbPj4oJN67 ZOZuUX5mQoTy/cSnLEYgStGr2S6DIg== =N6dQ -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Fri May 03 23:42:53 2019 Received: (at 35380-done) by debbugs.gnu.org; 4 May 2019 03:42:53 +0000 Received: from localhost ([127.0.0.1]:50141 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hMlZd-0005vJ-Ab for submit@debbugs.gnu.org; Fri, 03 May 2019 23:42:53 -0400 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:44047) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <7e9wc56emjakcm@s.rendaw.me>) id 1hMlZa-0005v7-Cd for 35380-done@debbugs.gnu.org; Fri, 03 May 2019 23:42:51 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 8CA254FA; Fri, 3 May 2019 23:42:44 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Fri, 03 May 2019 23:42:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rendaw.me; h= subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm3; bh=7 hoNnVjhqQowjHusdWli+sV3tEOBKCqspOR3hgMc0Kc=; b=on1FQouZWXTbWWCR/ eYh6d4Murp2ChL7axlEr6uLYH1D745Gl01KAZmYGQLgO6ER+ziYWSUAN9SoTMc5z uk63pgjKkMfOU+N83jmFvOJt2XYbpEAZS6d1TitYB2EDiYCe4lEso6ZVxmENgDfC flPbIdvud3aDiQBFHJ+Xr+UcV/pfdAHP4bf2B+chipqJGJgt6gBgUbIV1QjxL6ik nuCzCoeuU9/61LpOCiBnVVDUSXkOF8UGZRLq4ydCjTqP4mUH7X9XVukjAzyif05Y EkTdzwSMopjT0QtsiPiBYK6qdwvDWGq11uowv45kMc3X8BNoqXtzhE9xpku/nj31 sqFyw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=7hoNnVjhqQowjHusdWli+sV3tEOBKCqspOR3hgMc0 Kc=; b=4bbErWBe8AGrJ0RPksOLW9DSPN+UETHVMppeP03RiLwnaAlt24/DGGoTn 2cOdGD0DyswsfBML/f6OrPGYG12sljqT/OeBfgwv4qFcKQIo+t/XNEnk7qeS2GWv yxcv/8bdtj1vBaF8WDmhq2SooJDy6r7EcJrt+Bt3Q7+iazZD19R37edZyzNf1xs5 XIDg3PKcwH04eDYYxoHz6emU8B3xzcMarqpP6l2VwCDvNa6xhLvmJIbQSGxX66+g aM2k6oSyveut0a1Nf9bpTfofUBH4rHO1zQGk742+ekLqjIp/yjSJsVIZsEvk1hWU GlNhY2LY3XHgdkjP029/bW0bl9qKA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrjedvgdejiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefuvfhfhffkffgfgggjtgfgsehtkeertddtfeejnecuhfhrohhmpehrvghnuggr ficuoeejvgelfigtheeivghmjhgrkhgtmhesshdrrhgvnhgurgifrdhmvgeqnecuffhomh grihhnpehgnhhurdhorhhgnecukfhppeduudekrddvgeefrddvfeeirdduieelnecurfgr rhgrmhepmhgrihhlfhhrohhmpeejvgelfigtheeivghmjhgrkhgtmhesshdrrhgvnhgurg ifrdhmvgenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from [192.168.1.35] (y236169.dynamic.ppp.asahi-net.or.jp [118.243.236.169]) by mail.messagingengine.com (Postfix) with ESMTPA id E9BD3E474A; Fri, 3 May 2019 23:42:41 -0400 (EDT) Subject: Re: bug#35380: disk-image fails to install efi grub To: Marius Bakke , =?UTF-8?Q?Ludovic_Court=c3=a8s?= , =?UTF-8?Q?G=c3=a1bor_Boskovits?= References: <0935773a-1e21-9576-d569-f97e79ed13dd@s.rendaw.me> <87a7gesccy.fsf@gnu.org> <323096f6-9382-c3fd-1dc5-486c4737b12f@s.rendaw.me> <87d0l2exld.fsf@gnu.org> <875zqsvqcb.fsf@gnu.org> <87d0l0fqlq.fsf@fastmail.com> <2aac4477-7895-4dbe-0a54-24ff69d17de7@s.rendaw.me> <8736lvfuai.fsf@fastmail.com> From: rendaw <7e9wc56emjakcm@s.rendaw.me> Message-ID: <19604964-ad64-bcfe-c052-88573031f914@s.rendaw.me> Date: Sat, 4 May 2019 12:42:39 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.3 MIME-Version: 1.0 In-Reply-To: <8736lvfuai.fsf@fastmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 35380-done Cc: 35380-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On 5/4/19 12:10 AM, Marius Bakke wrote: > rendaw <7e9wc56emjakcm@s.rendaw.me> writes: > >> On 5/3/19 7:17 AM, Marius Bakke wrote: >>> It would be great to have UEFI support in the record, >>> mainly for system tests, but I doubt that is what rendaw is after :-) >> Yeah, ideally I'd like secure boot from the flashed media but failing >> that I'd at least like to be moving closer to it (boot without having to >> enable legacy boot). > I see. Do you know what is needed to enable secure boot with grub-efi? So having read your clarification below, I assume this question is about grub-efi specifically.  I might have been overly specific with my original report but I would like to boot (uefi with or without secure boot) with any boot loader, not necessarily grub-efi.  I have no idea how this is done with grub-efi specifically - some Ubuntu docs suggest that they use a Microsoft-signed shim loader that operates before grub-efi. >>> That means you can't just take an operating system hard drive from one >>> EFI system to another. >> I'm absolutely not an expert on UEFI, and it's likely I'm >> misinterpreting some of the more subtle points you wrote, but do you >> have more information on the NVRAM restriction?  I've found a fair >> amount of references to making secure boot and UEFI capable media (USB >> and CD) around the web so I'm surprised it's not possible to make a >> portable UEFI image.  Wouldn't that make it difficult to install UEFI >> bootloaders on blank systems? > To clarify: "grub-efi" will not work to make a portable UEFI > installation. For that you need "grub-mkstandalone" and place the > resulting executable in "/efi/boot/bootx64.efi" on your EFI System > Partition, like Guix does for disk images: > . > > It would be nice to make this procedure more generally accessible. > Perhaps create a (grub-standalone-bootloader ...) procedure, similar to > (grub-efi-bootloader)? Then it can be used to create portable EFI > systems straight from your config.scm. > > Would you like to give it a go? Ah thanks!  I was indeed misunderstanding some of the subtleties in your previous post, and thanks for the pointers.  Depending on how straightforward it is I might try my hand implementing it, time permitting, but it probably wouldn't be for at least a month due to other priorities. From debbugs-submit-bounces@debbugs.gnu.org Sat May 04 10:35:06 2019 Received: (at 35380-done) by debbugs.gnu.org; 4 May 2019 14:35:07 +0000 Received: from localhost ([127.0.0.1]:51946 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hMvkn-0007No-3Q for submit@debbugs.gnu.org; Sat, 04 May 2019 10:35:05 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:53835) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hMvkl-0007NH-Jl for 35380-done@debbugs.gnu.org; Sat, 04 May 2019 10:35:03 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 617E829A33; Sat, 4 May 2019 10:34:58 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Sat, 04 May 2019 10:34:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-type; s=fm2; bh=bwWOD055JFBkMSh1GyY3tpnnD9 qBfEP0m/OheL7swjA=; b=2I79nFWP5y14NnhOkArIcmAjsBQofsc9FYzqebGqcm 92hU+jAjtJuWAOCgfMsU4+ITUYJVpCEnoinX9jvwTqcjjpWwvyOVXThW1/YT7i1o JPAGdGMCcDWY8tcyOoGuSbN9YimZvP0P8xl4o0P/LE6/LYfuXYXl/avsBh5Gx+MZ 6ZDEe8/13jaqBr19Vgf5oZCZft13uuVg5D12yoyJwG0d+7iRGaTrt9oGwJzXIaMW mtAoflCZAWldtRb6JELxqZFnli0U0gLLE/bDMRtylbfEIor0n4CRmQKweSNTZI/O jgRTovh2e6KsVBYiK2wt5RMJitZ+sMyOtWQ3zfGFf98w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=bwWOD0 55JFBkMSh1GyY3tpnnD9qBfEP0m/OheL7swjA=; b=rbpeWi3ffPIz8jsUPQtWYc VG7QHSkpmq2TPXT6uyrrJVAsVJDiI41uAW0hFhnqlGcl5Ach4NLjM/GBgb6i84G8 bURcFpAq33K5XZuF2QtmgBKrrBIsYHiGHi2QDnBOk/5/5lUOVXdJ0pk+rUHnVD7P qt6TVPa7DiTh4ccQl0rbNaD2FqzSZP5oTGL+tw65CvwTURYkUEk4TOOwWbt2FrIs IuUdeFyy2lTuroK6isWMLtUjOZ0ihaJYNeVB9s1UozVZUWJ0PwsQeuOq1/gOSx4K AZfR+fTub0hXvVTUq9BS0sXxtJe8Vq+fww6OCFGE80c8QRCA9uxBExotHd+RPBqg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrjeefgdejjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffujghffgffkfggtgesghdtreertderjeenucfhrhhomhepofgrrhhiuhhs uceurghkkhgvuceomhgsrghkkhgvsehfrghsthhmrghilhdrtghomheqnecuffhomhgrih hnpehgnhhurdhorhhgnecukfhppeeivddrudeirddvvdeirddugedtnecurfgrrhgrmhep mhgrihhlfhhrohhmpehmsggrkhhkvgesfhgrshhtmhgrihhlrdgtohhmnecuvehluhhsth gvrhfuihiivgeptd X-ME-Proxy: Received: from localhost (140.226.16.62.customer.cdi.no [62.16.226.140]) by mail.messagingengine.com (Postfix) with ESMTPA id 88D09103D0; Sat, 4 May 2019 10:34:57 -0400 (EDT) From: Marius Bakke To: rendaw <7e9wc56emjakcm@s.rendaw.me>, Ludovic =?utf-8?Q?Court=C3=A8s?= , =?utf-8?Q?G=C3=A1bor?= Boskovits Subject: Re: bug#35380: disk-image fails to install efi grub In-Reply-To: <19604964-ad64-bcfe-c052-88573031f914@s.rendaw.me> References: <0935773a-1e21-9576-d569-f97e79ed13dd@s.rendaw.me> <87a7gesccy.fsf@gnu.org> <323096f6-9382-c3fd-1dc5-486c4737b12f@s.rendaw.me> <87d0l2exld.fsf@gnu.org> <875zqsvqcb.fsf@gnu.org> <87d0l0fqlq.fsf@fastmail.com> <2aac4477-7895-4dbe-0a54-24ff69d17de7@s.rendaw.me> <8736lvfuai.fsf@fastmail.com> <19604964-ad64-bcfe-c052-88573031f914@s.rendaw.me> User-Agent: Notmuch/0.28.3 (https://notmuchmail.org) Emacs/26.2 (x86_64-pc-linux-gnu) Date: Sat, 04 May 2019 16:34:55 +0200 Message-ID: <87v9yqe19s.fsf@fastmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 35380-done Cc: 35380-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable rendaw <7e9wc56emjakcm@s.rendaw.me> writes: > On 5/4/19 12:10 AM, Marius Bakke wrote: >> rendaw <7e9wc56emjakcm@s.rendaw.me> writes: >> >>> On 5/3/19 7:17 AM, Marius Bakke wrote: >>>> That means you can't just take an operating system hard drive from one >>>> EFI system to another. >>> I'm absolutely not an expert on UEFI, and it's likely I'm >>> misinterpreting some of the more subtle points you wrote, but do you >>> have more information on the NVRAM restriction?=C2=A0 I've found a fair >>> amount of references to making secure boot and UEFI capable media (USB >>> and CD) around the web so I'm surprised it's not possible to make a >>> portable UEFI image.=C2=A0 Wouldn't that make it difficult to install U= EFI >>> bootloaders on blank systems? >> To clarify: "grub-efi" will not work to make a portable UEFI >> installation. For that you need "grub-mkstandalone" and place the >> resulting executable in "/efi/boot/bootx64.efi" on your EFI System >> Partition, like Guix does for disk images: >> . >> >> It would be nice to make this procedure more generally accessible. >> Perhaps create a (grub-standalone-bootloader ...) procedure, similar to >> (grub-efi-bootloader)? Then it can be used to create portable EFI >> systems straight from your config.scm. >> >> Would you like to give it a go? > Ah thanks!=C2=A0 I was indeed misunderstanding some of the subtleties in = your > previous post, and thanks for the pointers.=C2=A0 Depending on how > straightforward it is I might try my hand implementing it, time > permitting, but it probably wouldn't be for at least a month due to > other priorities. Right, no worries! Improving the EFI support in Guix has been on my TODO list for a couple of years now, so it's not very urgent ;-) --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAlzNoxAACgkQoqBt8qM6 VPqHMwf/akqnPMBTgPCuxrMrWbN3no2Iv3sgUd9griPmC9/9ziTaSlPOJEwDDlO6 grL3uL4P0l+e/LHtNdjWQhD4LpQBd5nBpTUJX4+SjM6tojECnpaokqU5geK9L8FE Lp5WYyyMi/tWlsuohafVCBLcOubFSCY4nrBL4yGmUqDuH5Z7nZ/1ct0JtZ8QXWT+ /yFblB6ylhNGSO1fZ8mQOCyrdTOczT8y2f6B5FYX4YqG7A9ZonY4DQzKOxcdMLoJ q5VYhiD9ZO0knllsGJcqOqyDljr1bXJCPe3hXzFRYfhAh0G7QyQtv/g9X5sPCmAm RrxYkYB6CzLLLtXMDwaTleNA0HrXlQ== =d58V -----END PGP SIGNATURE----- --=-=-=-- From unknown Tue Jun 17 01:38:47 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 02 Jun 2019 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator