Update lfs-uefi hint
authorxry111 <xry111@103bf434-28df-0310-ab84-f3a62b6b63b3>
Thu, 28 Mar 2019 05:03:11 +0000 (28 05:03 +0000)
committerxry111 <xry111@103bf434-28df-0310-ab84-f3a62b6b63b3>
Thu, 28 Mar 2019 05:03:11 +0000 (28 05:03 +0000)
git-svn-id: svn://svn.linuxfromscratch.org/hints/trunk@1153 103bf434-28df-0310-ab84-f3a62b6b63b3

lfs-uefi-20180409.txt

index 6e44f7b..bda20ba 100644 (file)
@@ -2,7 +2,7 @@ USING GRUB ON UEFI
 
 AUTHOR: Dan McGhee, Kevin M. Buckley, and Xi Ruoyao
 
-DATE: 2019-01-10
+DATE: 2019-03-28
 
 LICENSE: GNU Free Documentation License Version 1.2
 
@@ -153,6 +153,20 @@ CHECKING EFI-MODE
 
   If this directory exists and is populated, the host booted in EFI Mode.
 
+CREATE AND FORMAT NEW EFI PARTITION, IF NECESSARY
+  Some firmwares (for example those in Dell desktops) has a reserved,
+  invisible EFI partition for its OEM Windows.  If it's the first time you
+  install another EFI booted OS on the system, create a new EFI partition
+  using `fdisk` or your prefered partition tool.  Then, mark it with the
+  `EF00` flag.
+
+  If you created a new EFI partition, install `dosfstools` from BLFS and
+  format the new EFI partition with:
+
+    mkfs.vfat /dev/sda(x)
+
+  where sda(x) is the device containing the EFI partition.
+
 MOUNT EFI PARTITION
   Determine which device is the EFI partition using gdisk or parted,
   enter the chroot environment, create `/boot/efi` if needed, and
@@ -182,16 +196,10 @@ instruction to build these packages.
 The 2017-02-07 hint gives instruction to build `dosfstools`, now we can
 just follow BLFS instruction.
 
-EFIVAR-34
-
-The 2017-02-07 hint uses `efivar-30`, but it's known to cause some issues.
-So we update to `efivar-34`.
-
-Dependencies:
-* Required: popt
+EFIVAR-37
 
 Download:
-* https://github.com/rhboot/efivar/releases/download/34/efivar-34.tar.bz2
+* https://github.com/rhboot/efivar/releases/download/37/efivar-37.tar.bz2
 
 Compile the package:
 
@@ -214,14 +222,13 @@ Install the package:
 
     make libdir=/usr/lib install
 
-EFIBOOTMGR-14
+EFIBOOTMGR-16
 
 Dependencies:
-* Required: `pciutils` and `efivars`
-* Required (runtime): `dosfstools`
+* Required: `popt` and `efivar`
 
 Download:
-* https://github.com/rhinstaller/efibootmgr/releases/download/14/efibootmgr-14.tar.bz2
+* https://github.com/rhinstaller/efibootmgr/releases/download/16/efibootmgr-16.tar.bz2
 
 Compile the package:
 
@@ -245,10 +252,10 @@ Install the package:
     install -v -D -m0644 src/efibootmgr.8 \
             /usr/share/man/man8/efibootmgr.8
 
-UNIFONT-10.0.07
+UNIFONT-12.0.01
 
 Download:
-* http://unifoundry.com/pub/unifont-10.0.07/font-builds/unifont-10.0.07.pcf.gz
+* http://unifoundry.com/pub/unifont/unifont-12.0.01/font-builds/unifont-12.0.01.pcf.gz
 
 Install the package:
 
@@ -276,7 +283,7 @@ Dependencies:
 Download:
 * https://ftp.gnu.org/gnu/grub/grub-2.02.tar.xz
 * Required patch:
-https://bf.mengyan1223.wang/assets/patches/grub-2.02-relocation_fix-1.patch
+http://www.linuxfromscratch.org/patches/downloads/grub/grub-2.02-relocation_fix-1.patch
 
 Prepare for compilation:
 
@@ -564,6 +571,13 @@ TODO:
   from distro
 
 CHANGELOG:
+[2019-03-28]
+    Use linuxfromscratch.org URL for grub patch
+    Cleanup dependencies
+    Update to efibootmgr-16
+    Update to efivar-37
+    Add instructions creating new EFI partition
+
 [2019-01-10]
     Added grub patch for binutils-2.31