| Newsgroups |
gmane.linux.lfs.book |
| Message-ID |
<[email protected]> |
This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch xry111/non-x86-efi
in repository lfs.
commit 483ab32c773b406252b90bdf9a53259f57af9e7b
Author: Xi Ruoyao <[email protected]>
AuthorDate: Sun Apr 5 18:37:52 2026 +0800
non-x86-efi: demonstrate chainloading
---
chapter02/creatingpartition.xml | 13 ++++++++-----
chapter10/grub.xml | 15 +++++++++++++++
2 files changed, 23 insertions(+), 5 deletions(-)
diff --git a/chapter02/creatingpartition.xml b/chapter02/creatingpartition.xml
index e89ad8fb5..58e4697c4 100644
--- a/chapter02/creatingpartition.xml
+++ b/chapter02/creatingpartition.xml
@@ -137,11 +137,14 @@
this LFS edition.</emphasis> The churn caused by squashing kernels of
different distros into one shared partition is so much that the editor
maintaining this edition does not want to spend any time on such a
- configuration. If you want to access the boot loader configuration
- from all the installed distros, consider using a separate partition
- for <filename class='directory'>/boot/grub</filename> instead: doing
- so will likely require hacking other distros so the details will not
- be explained in the book.</para></listitem>
+ configuration. If you want to share one GRUB installation for
+ multiple LFS installations, consider using a separate partition
+ for <filename class='directory'>/boot/grub</filename> instead. If
+ you want to configure a dual-boot for LFS and the host distro, it's
+ cleaner to keep their bootloader installations separated and
+ <quote>chainload</quote> the host bootloader from the LFS grub,
+ as we'll explain in
+ <xref linkend='ch-bootable-grub'/>.</para></listitem>
<listitem><para>/home – Highly recommended. Share your home
directory and user customization across multiple distributions or LFS
diff --git a/chapter10/grub.xml b/chapter10/grub.xml
index db5c0aece..6a2786e9d 100644
--- a/chapter10/grub.xml
+++ b/chapter10/grub.xml
@@ -202,6 +202,12 @@ insmod efi_gop
menuentry "GNU/Linux, Linux &linux-version;-lfs-&version;" {
linux /boot/vmlinuz-&linux-version;-lfs-&version; root=/dev/sda2 ro
+}
+
+menuentry "Debian" {
+ insmod fat
+ insmod chain
+ chainloader (hd0,1)/EFI/DEBIAN/GRUB&efi-BOOT-suffix;.EFI
}</literal>
EOF</userinput></screen>
<!-- GOP is probably not needed anyhow, since we're not using terminal_output
@@ -225,6 +231,15 @@ EOF</userinput></screen>
configurations.
</para>
+ <para>
+ The <quote>Debian</quote> section demonstrate how a UEFI boot loader
+ can <quote>chainload</quote> another. If you've backed up the
+ previous <filename>BOOT&efi-BOOT-suffix;.EFI</filename> file before
+ running the <command>grub-install</command> command, you can put it
+ it back into the ESP (with a different path) and chainload it as
+ well.
+ </para>
+
<note>
<para>The GRUB designator for a partition may change if you added or
removed some disks (including removable disks like USB thumb devices).
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
--
http://lists.linuxfromscratch.org/sympa/info/lfs-book
Unsubscribe: See the above information page