+stage2: Installing basic system software
+
+Installation
+------------
-Installation instructions
--------------------------
+1. Type:
+ $> sudo make
-Note: In this example, the destination partition is /dev/hda6, and
- the sources partition is /dev/hda10.
+2. Compile new kernel (enable loadable modules support)
-1. Create and/or format the destination partition:
- >$ mkreiserfs /dev/hda6
+3. Type 'exit'
-2. Mount the partition:
- >$ mount -t reiserfs /dev/hda6 /mnt/linux
+4. Reboot.
-3. In the destination partition root, create a directory that will
- be used to mount the CD or hard disk partition containing the sources:
- >$ cd /mnt/linux
- >$ mkdir -p mnt/hvlinux
+5. Run script /usr/local/bin/udev-create-persistent-net.sh
-4. Mount the sources partition:
- >$ mount -t reiserfs /dev/hda10 /mnt/linux/mnt/hvlinux
-
-5. Copy the tools directory to the LFS (/mnt/linux) partition:
- >$ cp -a /mnt/linux/mnt/hvlinux/tools /mnt/linux
- This is needed only if you did not run stage1 installation
-
-6. Modify the "/mnt/linux/mnt/hvlinux/scripts/sysinfos" file to
- reflect your configuration.
-
-7. If you want a separate boot partition, make sure it is mounted
- under ${LFS}/boot.
-
-8. Launch the installation of stage 2:
- >$ /mnt/linux/mnt/hvlinux/scripts/stage2/stage2-install
-
-9. After that, compile a fresh kernel.
-
-10. type 'exit'
-
-11. You can now remove the /mnt/linux/tools directory.
-
-12. Reboot.
-
-13. When the GRUB prompt appears, install grub on the MBR with:
+6. Optional. To install GRUB, launch 'grub'. When the GRUB prompt appears,
+ install grub on the MBR with (example with boot partition on first partition
+ of first disk):
grub> root (hd0,0)
grub> setup (hd0)
grub> reboot
-14. login as root, and create the password for the regular user:
+7. Login as root, and create the password for the regular user:
>$ passwd reguser
-
+Re-installation
+---------------
+
+1. You need the /tools directory in order to build stage2. If it is not
+ present, it means it was previously and automatically backed up at
+ the end of stage2 to /usr/src:
+ $> cp -a /usr/src/tools /
+
+2. Follow instructions above for stage2 installation