From: Pierre Neidhardt <mail@ambrevar.xyz>
To: Guix-devel <guix-devel@gnu.org>
Subject: Auto-install EFI / BIOS bootloader
Date: Tue, 22 Jan 2019 16:50:43 +0100 [thread overview]
Message-ID: <87womwsncc.fsf@ambrevar.xyz> (raw)
[-- Attachment #1: Type: text/plain, Size: 1876 bytes --]
The manual suggests the following:
--8<---------------cut here---------------start------------->8---
Note: Unsure whether to use EFI- or BIOS-based GRUB? If the
directory ‘/sys/firmware/efi’ exists in the installation image,
then you should probably perform an EFI installation, using
‘grub-efi-bootloader’. Otherwise you should use the BIOS-based
GRUB, known as ‘grub-bootloader’. *Note Bootloader
Configuration::, for more info on bootloaders.
--8<---------------cut here---------------end--------------->8---
From there, why wouldn't Guix do that automatically for use?
For instance, would could have the following:
--8<---------------cut here---------------start------------->8---
(bootloader (bootloader-configuration
(bootloader grub-auto-bootloader)
(target "/dev/sdX))
--8<---------------cut here---------------end--------------->8---
The "target" can be used as follows:
- If in BIOS mode, use /dev/sdX directly.
- If in EFI mode, pick the partition with the ESP flag and look up the
mount-point in the (file-systems ...).
What do you think?
Side question: I just tried installing GuixSD on a brandnew workstation
and the motherboard (Asus PRIME B450M-K) displays "UEFI" when I press F2
on start. Now when I boot the Guix image, /sys/firmware/efi does not
exist, and indeed the Grub EFI installation fails (the BIOS one works).
I tried with another distribution, same thing. The error is something
like:
--8<---------------cut here---------------start------------->8---
/gnu/store/...-grub-.../.../modinfo.sh doesn't exist, please specify
--target or --directory.
--8<---------------cut here---------------end--------------->8---
Is it possible that Linux fails to detect the UEFI?
--
Pierre Neidhardt
https://ambrevar.xyz/
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
next reply other threads:[~2019-01-22 18:54 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-22 15:50 Pierre Neidhardt [this message]
2019-01-22 17:26 ` Auto-install EFI / BIOS bootloader Pierre Neidhardt
2019-01-22 19:33 ` Danny Milosavljevic
2019-01-22 19:38 ` Danny Milosavljevic
2019-01-22 21:50 ` Pierre Neidhardt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87womwsncc.fsf@ambrevar.xyz \
--to=mail@ambrevar.xyz \
--cc=guix-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.