Browse Source

Add a note about the --target
option for grub-install

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11503 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

Pierre Labastie 6 years ago
parent
commit
d3c9936abf
1 changed files with 8 additions and 0 deletions
  1. 8 0
      chapter08/grub.xml

+ 8 - 0
chapter08/grub.xml

@@ -113,6 +113,14 @@ xorriso -as cdrecord -v dev=/dev/cdrw blank=as_needed grub-img.iso</userinput></
 
 <screen role="nodump"><userinput>grub-install /dev/sda</userinput></screen>
 
+    <note>
+      <para>If the system has been booted using UEFI,
+      <command>grub-install</command> will try to install files for the
+      <emphasis>x86_64-efi</emphasis> target, but those files
+      have not been installed in chapter 6. If this is the case, add
+      <option>--target i386-pc</option> to the command above.</para>
+    </note>
+
 <!-- This does not seem to be true any more
     <note><para><application>grub-install</application> is a script and calls another
     program, grub-probe, that may fail with a message "cannot stat `/dev/root'".