From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marius Bakke Subject: bug#40496: cannot install bootloader Date: Wed, 08 Apr 2020 00:38:56 +0200 Message-ID: <87a73mly4f.fsf@devup.no> References: <87sghf2gek.fsf@web.de> <87ftdfkp1h.fsf@devup.no> <87k12r2dyu.fsf@web.de> 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]:44886) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jLwt1-0005mp-2v for bug-guix@gnu.org; Tue, 07 Apr 2020 18:40:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jLwsz-0004wH-Uy for bug-guix@gnu.org; Tue, 07 Apr 2020 18:40:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:39636) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jLwsz-0004vp-PY for bug-guix@gnu.org; Tue, 07 Apr 2020 18:40:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jLwsz-0007FO-Km for bug-guix@gnu.org; Tue, 07 Apr 2020 18:40:01 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87k12r2dyu.fsf@web.de> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane-mx.org@gnu.org Sender: "bug-Guix" To: Arne Babenhauserheide Cc: 40496@debbugs.gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Arne Babenhauserheide writes: > Marius Bakke writes: > >> Arne Babenhauserheide writes: >> >>> The error I receive: >>> >>> building /gnu/store/fyn1cmq9p38ipp5mlbx1z4gs84qd5jg4-install-bootloader= .scm.drv... >>> Backtrace: >>> 1 (primitive-load "/root/.config/guix/current/bin/guix") >>> In guix/ui.scm: >>> 1936:12 0 (run-guix-command _ . _) >>> >>> guix/ui.scm:1936:12: In procedure run-guix-command: >>> ERROR: >>> 1. &message: "'/gnu/store/xlcbi7dc89n4wvyz4jk6j0g4590ymi6q-grub-efi-2= .04/sbin/grub-install --boot-directory //boot --bootloader-id=3DGuix --efi-= directory //boot/efi' exited with status 1; output follows:\n\n /gnu/store= /xlcbi7dc89n4wvyz4jk6j0g4590ymi6q-grub-efi-2.04/sbin/grub-install: error: /= gnu/store/xlcbi7dc89n4wvyz4jk6j0g4590ymi6q-grub-efi-2.04/lib/grub/i386-pc/m= odinfo.sh doesn't exist. Please specify --target or --directory.\n" >> >> This error suggests that you are attempting to use EFI GRUB on a non-EFI >> system. >> >> More specifically, you are using 'grub-efi-bootloader', but 'grub-efi' >> failed to detect a UEFI system and attempts to install the 'i386-pc' >> (BIOS) target instead, which does not exist in 'grub-efi'. >> >> Does that ring a bell? > > Yes: I=E2=80=99m now booting from the live-USB Stick of Guix, so grub mig= ht not > detect that this is a UEFI system. Disabling "legacy BIOS compatibility" in your firmware configuration should work around this. Some firmwares tend to try "legacy" boot before a native UEFI boot on external media. The GRUB EFI detection code just checks whether /sys/firmware/efi exists, which is only the case when you are already booted in "UEFI mode". > I don=E2=80=99t know why it stopped booting. After a pull + system reconf= igure > on 30th of March, the bios did not see my system disk as bootable > anymore =E2=80=94 but this could also be due to problems in the disk, so = I=E2=80=99m not > sure that it=E2=80=99s due to Guix. That's terrible. I hope you are able to recover your system. If the problem is "just" that the boot entry is missing, you should be able to create a new one with "efibootmgr --create" manually. Here is a typical entry with the EFI System Partition as the first partition of a disk: # efibootmgr -v BootCurrent: 0000 Timeout: 1 seconds BootOrder: 0000,0002 Boot0000* Guix HD(1,GPT,32944052-6012-4cda-b270-fe653d430c84,0x800,0x4800)= /File(\EFI\Guix\grubx64.efi) 1 is the partition number, and the UUID is the same as 'lsblk -o PARTUUID /dev/sda1' assuming your disk is /dev/sda. I don't remember what 0x800 and 0x4800 means, but don't think they are required. HTH! --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAl6NAQAACgkQoqBt8qM6 VPrMAQf/dF3g+iy17QJjHLaVRchHbt6FBHbTZfaJZlK03LU/ON6aotB5+6uaJwdl lO3pYHLOwEXrk3/cHRlTBqdC5cM2YgLC6nYXzlfhhzQRnxPP/8R9/2OJJyFF80GN rD64NhsEvTLpgDDP/qVrcwla9AfpoTcRwSRQ7FeaWeo9+AEKRDUXkT+6zoGAKTA8 BN9v2yCojEzSpjAn7mW5jY5uJnKNC1+9Ffai0LezYC4lBGT2+CLQwQl6qODZDL4m FoeWRsJ86ghSPI9eE0IXQJKl18xGXoV33FH3lOXbWPuw4ZYKCdDYjralM1BWM8UR zMYgbefKskfESIXqs3ckJKzTqpfKuQ== =wuaU -----END PGP SIGNATURE----- --=-=-=--