Changeset b55efcb


Ignore:
Timestamp:
03/16/2022 12:41:32 PM (2 years ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
xry111/clfs-ng
Children:
b68190c
Parents:
029f725
git-author:
Xi Ruoyao <xry111@…> (03/16/2022 12:39:49 PM)
git-committer:
Xi Ruoyao <xry111@…> (03/16/2022 12:41:32 PM)
Message:

clfs-ng: adjust grub cfg for our partition layout created earlier

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter10/grub.xml

    r029f725 rb55efcb  
    7777    is /boot/grub/.</para>
    7878
    79     <para>The location of the boot partition is a choice of the user that
    80     affects the configuration.  One recommendation is to have a separate small
    81     (suggested size is 200 MB) partition just for boot information.  That way
    82     each build, whether LFS or some commercial distro, can access the same boot
    83     files and access can be made from any booted system.  If you choose to do
    84     this, you will need to mount the separate partition, move all files in the
    85     current <filename class="directory">/boot</filename> directory (e.g. the
    86     linux kernel you just built in the previous section) to the new partition.
    87     You will then need to unmount the partition and remount it as <filename
    88     class="directory">/boot</filename>.  If you do this, be sure to update
    89     <filename>/etc/fstab</filename>.</para>
    90 
    91     <para>Using the current lfs partition will also work, but configuration
    92     for multiple systems is more difficult.</para>
    93 
    94     <para>Using the above information, determine the appropriate
    95     designator for the root partition (or boot partition, if a separate
    96     one is used). For the following example, it is assumed that the root
    97     (or separate boot) partition is <filename
    98     class="partition">sda2</filename>.</para>
     79    <para>For the following example, it is assumed that the root
     80    partition is <filename class="partition">sda3</filename>, and the
     81    seperate boot partition is
     82    <filename class="partition">sda2</filename>.  Replace
     83    <replaceable>sda</replaceable> to the name of the device node for your
     84    disk where LFS is being built.</para>
    9985
    10086    <para>Install the GRUB files into <filename
     
    145131
    146132menuentry "GNU/Linux, Linux &linux-version;-lfs-&version;" {
    147         linux   /boot/vmlinuz-&linux-version;-lfs-&version; root=/dev/sda2 ro
     133        linux   /vmlinuz-&linux-version;-lfs-&version; root=/dev/sda3 ro
    148134}</literal>
    149135EOF</userinput></screen>
Note: See TracChangeset for help on using the changeset viewer.