From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marius Bakke Subject: Re: Installing Guix System on an external hard drive Date: Wed, 20 Nov 2019 00:14:18 +0100 Message-ID: <87h82z8nn9.fsf@devup.no> References: <20191112232532.32f0cdb0@interia.pl> <20191113065329.GN3954@E5400> <20191113201538.29973b27@kompiuter> <87bltdgpos.fsf@devup.no> <20191115172335.7e3b9002@kompiuter> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:43032) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iXChU-0002Vg-8P for help-guix@gnu.org; Tue, 19 Nov 2019 18:14:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iXChT-00077W-5u for help-guix@gnu.org; Tue, 19 Nov 2019 18:14:24 -0500 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:55241) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iXChS-00077I-Ug for help-guix@gnu.org; Tue, 19 Nov 2019 18:14:23 -0500 In-Reply-To: <20191115172335.7e3b9002@kompiuter> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Jan Cc: help-guix@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Jan writes: > On Fri, 15 Nov 2019 15:49:23 +0100 > Marius Bakke wrote: > >> Did you get the same error when you mounted at /boot/efi? > Yes. > >> If you want the USB drive to be 'portable', i.e. not tied to a single >> system, you can not use 'grub-efi-bootloader'. The reason is that >> grub-efi relies on updating UEFI firmware variables *on the running >> system*, to make the newly installed bootloader show up in the UEFI >> boot menu. >>=20 >> For the same reason, it is not possible to use it on a non-UEFI >> system. >>=20 >> It would be good to have a 'grub-standalone-bootloader' procedure that >> would write a self-contained UEFI firmware executable to a standard >> location, similar to what Guix does for disk images: >>=20 >> https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/build/vm.scm?id=3D4d= cf32b56b824efcdb181c9f4cc7ee6c8a0ba125#n399 >>=20 >> Would you like to try implementing it? > > Well, I could try as a Scheme learning exercise, but it would take me > some time, because I'm a fresh Guile coder and the only thing I know > about UEFI is that it has a buggy implementation on my motherboard and > GRUB goes to hell :) > Any hint where could I start? I would start by copying an existing bootloader from gnu/bootloader/grub.scm and make it run 'grub-mkstandalone' as in the above URL. Hope this helps! Marius --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAl3Ud0oACgkQoqBt8qM6 VPq9YQf+InKDykNxt8oNHvj383bmiK9SxiHa70xKdZOgJEoQnm5NuzAs5UKqihFL 330QwvfTBdT0fQwBrC7gnIgIQ9eBE3OqA1cSeWkCAI7U5BkZ2k7nXn5AaXBI+bmk b2SaVbPeZ531ovNTRoHPev/rxBPX4gQOHn8AFK06lLhbMmQhRiyJZ5ajujpt/XG1 kefwMCHTEAJRjjYcXU2sxpxER/e1WnLlWcsjbMIJUddllB/ZiR1qTdvpoKl4aKpK bW3MpuCE/aYKMVOc0mufUurPY5yaT2VvpYBi9wTUq+OkQ9LY/hgUNvG5nsYmz0o5 8eTJagB7AptyhSqLlfiHc718ef8/ZA== =f1YE -----END PGP SIGNATURE----- --=-=-=--