Ignore:
Timestamp:
02/26/2022 04:01:39 PM (9 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
xry111/clfs-ng
Children:
f8f349e
Parents:
3963a56
git-author:
Xi Ruoyao <xry111@…> (02/23/2022 08:04:38 AM)
git-committer:
Xi Ruoyao <xry111@…> (02/26/2022 04:01:39 PM)
Message:

cross-ng: adjust reboot command for new clfs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter11/reboot.xml

    r3963a56 rfa8a0f2f  
    8282
    8383  <para>Now that we have said that, let's move on to booting our shiny new LFS
    84   installation for the first time! First exit from the chroot environment:</para>
     84  installation for the first time!</para>
    8585
    86 <screen><userinput>logout</userinput></screen>
    87 <!-- We need to show the user the details...
    88   <para>Unmount the LFS file system hierarchy:</para>
     86  <para>Synchronize cached writes to prevent data loss on reboot without a
     87  fully functional <command>init</command> process:</para>
    8988
    90 <screen><userinput>umount -Rv $LFS</userinput></screen>
    91 -->
    92 
    93   <para>Then unmount the virtual file systems:</para>
    94 
    95 <screen><userinput>umount -v $LFS/dev/pts
    96 umount -v $LFS/dev
    97 umount -v $LFS/run
    98 umount -v $LFS/proc
    99 umount -v $LFS/sys</userinput></screen>
    100 
    101   <para>If multiple partitions were created, unmount the other
    102   partitions before unmounting the main one, like this:</para>
    103 
    104 <screen role="nodump"><userinput>umount -v $LFS/usr
    105 umount -v $LFS/home
    106 umount -v $LFS</userinput></screen>
    107 
    108   <para>Unmount the LFS file system itself:</para>
    109 
    110 <screen role="nodump"><userinput>umount -v $LFS</userinput></screen>
     89<screen role="nodump"><userinput>sync</userinput></screen>
    11190
    11291  <para>Now, reboot the system with:</para>
    11392
    114 <screen role="nodump"><userinput>shutdown -r now</userinput></screen>
     93<screen role="nodump"><userinput>reboot -ff</userinput></screen>
     94
     95  <para><parameter>-ff</parameter> option allows to reboot the system
     96  without support from the <command>init</command> process.</para>
    11597
    11698  <para>Assuming the GRUB boot loader was set up as outlined earlier, the menu
Note: See TracChangeset for help on using the changeset viewer.