Changeset 1203312 for chapter10


Ignore:
Timestamp:
09/01/2022 11:27:01 AM (20 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
xry111/clfs-ng
Children:
6c952e3
Parents:
9023df4 (diff), baecd49 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge remote-tracking branch 'origin/trunk' into xry111/clfs-ng

Location:
chapter10
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • chapter10/grub.xml

    r9023df4 r1203312  
    142142    </para></note>
    143143
     144    <note>
     145      <para>The GRUB designator for a partition may change if you added or
     146      removed some disks (including removable disks like USB thumb devices).
     147      The change may cause boot failure because
     148      <filename>grub.cfg</filename> refers to some <quote>old</quote>
     149      designators.  If you wish to avoid such a problem, you may use
     150      the UUID of partition and filesystem instead of GRUB designator to
     151      specify a partition.
     152      Run <command>lsblk -o UUID,PARTUUID,PATH,MOUNTPOINT</command> to show
     153      the UUID of your filesystems (in <literal>UUID</literal> column) and
     154      partitions (in <literal>PARTUUID</literal> column).  Then replace
     155      <literal>set root=(hdx,y)</literal> with
     156      <literal>search --set=root --fs-uuid <replaceable>&lt;UUID of the filesystem where the kernel is installed&gt;</replaceable></literal>, and replace
     157      <literal>root=/dev/sda2</literal> with
     158      <literal>root=PARTUUID=<replaceable>&lt;UUID of the partition where LFS is built&gt;</replaceable></literal>.</para>
     159      <para>Note that the UUID of a partition and the UUID of the filesystem
     160      in this partition is completely different.  Some online resources may
     161      instruct you to use
     162      <literal>root=UUID=<replaceable>&lt;filesystem UUID&gt;</replaceable></literal>
     163      instead of
     164      <literal>root=PARTUUID=<replaceable>&lt;partition UUID&gt;</replaceable></literal>,
     165      but doing so will require an initramfs which is beyond the scope of
     166      LFS.</para>
     167      <para>The name of the device node for a partition in
     168      <filename class='directory'>/dev</filename> may also change (more
     169      unlikely than GRUB designator change though).  You can also replace
     170      paths to device nodes like <literal>/dev/sda1</literal> with
     171      <literal>PARTUUID=<replaceable>&lt;partition UUID&gt;</replaceable></literal>,
     172      in <filename>/etc/fstab</filename>, to avoid a potential boot failure
     173      in case the device node name has changed.</para>
     174    </note>
     175
    144176    <para>GRUB is an extremely powerful program and it provides a tremendous
    145177    number of options for booting from a wide variety of devices, operating
  • chapter10/kernel.xml

    r9023df4 r1203312  
    150150       Pseudo filesystems  ---&gt;
    151151        [*] Tmpfs POSIX Access Control Lists [CONFIG_TMPFS_POSIX_ACL]</screen>
     152
     153      <para>Enable some additional features if you are building a 64-bit
     154      system.  If you are using menuconfig, enable them in the order of
     155      <parameter>CONFIG_PCI_MSI</parameter> first, then
     156      <parameter>CONFIG_IRQ_REMAP</parameter>, at last
     157      <parameter>CONFIG_X86_X2APIC</parameter> because an option only
     158      shows up after its dependencies are selected.</para>
     159
     160      <screen role="nodump">Processor type and features ---&gt;
     161  [*] Support x2apic [CONFIG_X86_X2APIC]
     162Memory Management options  ---&gt;
     163  [ ] Enable userfaultfd() system call [CONFIG_USERFAULTFD]
     164Device Drivers ---&gt;
     165  [*] PCI Support ---&gt; [CONFIG_PCI]
     166    [*] Message Signaled Interrupts (MSI and MSI-X) [CONFIG_PCI_MSI]
     167  [*] IOMMU Hardware Support ---&gt; [CONFIG_IOMMU_SUPPORT]
     168    [*] Support for Interrupt Remapping [CONFIG_IRQ_REMAP]</screen>
    152169    </note>
    153170
     
    223240          upon switching to root filesystem just before starting
    224241          init.</para>
     242        </listitem>
     243      </varlistentry>
     244
     245      <varlistentry>
     246        <term><parameter>Support x2apic</parameter></term>
     247        <listitem>
     248          <para>Support running the interrupt controller of 64-bit x86
     249          processors in x2APIC mode.  x2APIC may be enabled by firmware on
     250          64-bit x86 systems, and a kernel without this option enabled will
     251          panic on boot if x2APIC is enabled by firmware.  This option has
     252          has no effect, but also does no harm if x2APIC is disabled by the
     253          firmware.</para>
     254        </listitem>
     255      </varlistentry>
     256
     257      <varlistentry>
     258        <term><parameter>Enable userfaultfd() system call</parameter></term>
     259        <listitem>
     260          <para>If this option is enabled, a security vulnerability not
     261          resolved in Linux-&linux-version; yet will be exploitable.
     262          Disable this option to avoid the vulnerability.  This system call
     263          is not used by any part of LFS or BLFS.</para>
    225264        </listitem>
    226265      </varlistentry>
Note: See TracChangeset for help on using the changeset viewer.