about summary refs log tree commit diff stats
path: root/core/reboot.html
diff options
context:
space:
mode:
Diffstat (limited to 'core/reboot.html')
-rw-r--r--core/reboot.html56
1 files changed, 31 insertions, 25 deletions
diff --git a/core/reboot.html b/core/reboot.html
index fd932ea..323596b 100644
--- a/core/reboot.html
+++ b/core/reboot.html
@@ -7,51 +7,57 @@
     <body>
 
         <a href="index.html">Core OS Index</a>
-        <h1>1.4. Prepare for Reboot</h1>
 
-        <p>This instructions are done
-        <a href="configure.html#chroot">inside chroot</a>.</p>
+        <h1>1.4. Prepare for Reboot</h1>
 
-        <h2 id="linux">1.4.1. Linux Kernel</h2>
+        <p>Follow this instructions with active chroot,
+        first <a href="configure.html#chroot">mount partitions</a>
+        and before chroot mount follow file systems;</p>
 
         <pre>
-        # cp /iso/crux/kernel/* /usr/src/
-        # cd /usr/src
-        # cp linux-4.1.13.defconfig linux-4.1.13/.config
-        # cd linux-4.1.13
+        $ sudo mount --bind /dev $CHROOT/dev
+        $ sudo mount -vt devpts devpts $CHROOT/dev/pts
+        $ sudo mount -vt tmpfs shm $CHROOT/dev/shm
+        $ sudo mount -vt proc proc $CHROOT/proc
+        $ sudo mount -vt sysfs sysfs $CHROOT/sys
         </pre>
 
+        <p>Now you can chroot;</p>
+
         <pre>
-        # make all
-        # make modules_install
-        # cp arch/x86_64/boot/bzImage /boot/vmlinuz-4.1.13
-        # cp System.map /boot/System.map-4.1.13
+        $ sudo chroot $CHROOT /usr/bin/env -i \
+          HOME=/root TERM="$TERM" PS1='\u:\w\$ ' \
+          PATH=/bin:/usr/bin:/sbin:/usr/sbin \
+          /bin/bash --login
         </pre>
 
-        <h2 id="dracut">4.2. Dracut - Initramfs</h2>
+        <h2 id="linux">1.4.1. Linux Kernel</h2>
 
-        <p>Copy dracut port from sysdoc to root home directory;</p>
+        <p>Install kernel with default crux configuration using pkgutils;</p>
 
         <pre>
-        # exit
-        # cp -R /home/user/sysdoc/ports/dracut $CHROOT/root/
+        # cd /usr/ports/c9-ports/linux-crux
+        # pkgmk -d
+        # pkgadd /usr/ports/packages/linux-crux#4.1.30-1.pkg.tar.gz
         </pre>
 
-        <p><a href="configure.html#chroot">Inside chroot</a>;</p>
+        <h2 id="dracut">1.4.2. Dracut - Initramfs</h2>
+
+        <p>Install dracut;</p>
 
         <pre>
-        # cd /root/dracut
+        # cd /usr/ports/c9-ports/dracut
         # pkgmk -d
-        # pkgadd pkgadd /srv/ports/packages/dracut#044-2.pkg.tar.gz
+        # pkgadd /usr/ports/packages/dracut#044-2.pkg.tar.gz
         </pre>
 
         <p>Run dracut to create init ram filesystem;</p>
 
         <pre>
-        # dracut -v -H --fstab  /boot/initramfs-4.1.13 4.1.13
+        # dracut -v -H --fstab  /boot/initramfs-4.1.30-crux.img 4.1.30-crux
         </pre>
 
-        <h2 id="grub">4.3. Configuring Grub2</h2>
+        <h2 id="grub">1.4.3. Configuring Grub2</h2>
 
         <p>Create grub file in /etc/default/grub with values;</p>
 
@@ -82,8 +88,8 @@
         <pre>
         # grub-mkconfig -o /boot/grub/grub.cfg
         Generating grub.cfg ...
-        Found linux image: /boot/vmlinuz-4.1.13-gnu_crux
-        Found initrd image: /boot/initramfs-4.1.13-gnu_crux.img
+        Found linux image: /boot/vmlinuz-4.1.30-crux
+        Found initrd image: /boot/initramfs-4.1.30-crux.img
         done
         #
         </pre>
@@ -96,7 +102,7 @@
         # grub-probe --target=hints_string /
         </pre>
 
-        <h2 id="checkup">4.4. Checkup</h2>
+        <h2 id="checkup">1.4.4. Checkup</h2>
 
         <p>If you have qemu installed you can see if it boots, in this
         example sdb is usb external drive;</p>
@@ -114,7 +120,7 @@
 	# dd if=crux.img of=/dev/sdX
 	</pre>
 
-        <a href="index.html">Install Index</a>
+        <a href="index.html">Core OS Index</a>
         <p>This is part of the SysDoc Manual.
         Copyright (C) 2016
         Silvino Silva.