From fa8a0f2fc32b39932aa204162d60170147b73419 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Wed, 23 Feb 2022 16:04:38 +0800 Subject: [PATCH] cross-ng: adjust reboot command for new clfs --- chapter11/reboot.xml | 34 ++++++++-------------------------- 1 file changed, 8 insertions(+), 26 deletions(-) diff --git a/chapter11/reboot.xml b/chapter11/reboot.xml index 9166a8c49..a25d2d9c3 100644 --- a/chapter11/reboot.xml +++ b/chapter11/reboot.xml @@ -81,37 +81,19 @@ Now that we have said that, let's move on to booting our shiny new LFS - installation for the first time! First exit from the chroot environment: + installation for the first time! -logout - - - Then unmount the virtual file systems: - -umount -v $LFS/dev/pts -umount -v $LFS/dev -umount -v $LFS/run -umount -v $LFS/proc -umount -v $LFS/sys - - If multiple partitions were created, unmount the other - partitions before unmounting the main one, like this: - -umount -v $LFS/usr -umount -v $LFS/home -umount -v $LFS - - Unmount the LFS file system itself: - -umount -v $LFS +sync Now, reboot the system with: -shutdown -r now +reboot -ff + + -ff option allows to reboot the system + without support from the init process. Assuming the GRUB boot loader was set up as outlined earlier, the menu is set to boot LFS &version; automatically.