aboutsummaryrefslogtreecommitdiffstats
path: root/core/reboot.html
diff options
context:
space:
mode:
authorSilvino Silva <silvino@bk.ru>2016-08-20 07:16:45 +0100
committerSilvino Silva <silvino@bk.ru>2016-08-20 07:16:45 +0100
commit05c1ad5f7378e421f8ea06fb55e44ec773f0f055 (patch)
tree8028df26ff358e9d7301f546676f0d21e48538fc /core/reboot.html
parentc178db81d64eed21177b4c5d78ab3db7a785b7fe (diff)
downloaddoc-05c1ad5f7378e421f8ea06fb55e44ec773f0f055.tar.gz
added skeletons to install
Diffstat (limited to 'core/reboot.html')
-rw-r--r--core/reboot.html124
1 files changed, 124 insertions, 0 deletions
diff --git a/core/reboot.html b/core/reboot.html
new file mode 100644
index 0000000..fd932ea
--- /dev/null
+++ b/core/reboot.html
@@ -0,0 +1,124 @@
+<!DOCTYPE html>
+<html dir="ltr" lang="en">
+ <head>
+ <meta charset='utf-8'>
+ <title>1.4. Prepare Reboot</title>
+ </head>
+ <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>
+
+ <h2 id="linux">1.4.1. Linux Kernel</h2>
+
+ <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
+ </pre>
+
+ <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
+ </pre>
+
+ <h2 id="dracut">4.2. Dracut - Initramfs</h2>
+
+ <p>Copy dracut port from sysdoc to root home directory;</p>
+
+ <pre>
+ # exit
+ # cp -R /home/user/sysdoc/ports/dracut $CHROOT/root/
+ </pre>
+
+ <p><a href="configure.html#chroot">Inside chroot</a>;</p>
+
+ <pre>
+ # cd /root/dracut
+ # pkgmk -d
+ # pkgadd pkgadd /srv/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
+ </pre>
+
+ <h2 id="grub">4.3. Configuring Grub2</h2>
+
+ <p>Create grub file in /etc/default/grub with values;</p>
+
+ <pre>
+ GRUB_DISABLE_LINUX_UUID=false
+ GRUB_ENABLE_LINUX_LABEL=false
+ </pre>
+
+ <p><a href="http://www.gnu.org/software/grub/manual/grub.html">Grub Manual</a>,
+ install grub on MBR of disk sdb;</p>
+
+ <pre>
+ # grub-install /dev/sdb
+ Installation finished. No error reported.
+ </pre>
+
+ <p>If you are installing on removable media;</p>
+
+ <pre>
+ # grub-install --removable /dev/sdb
+ Installation finished. No error reported.
+ </pre>
+
+ <p>grub-mkconfig generates grub.cfg, it will try to discover
+ available kernels and attempt to generate menu entries for
+ them;</p>
+
+ <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
+ done
+ #
+ </pre>
+
+ <p>Check /boot/grub/grub.cfg, if is wrong add menu to
+ /etc/grub.d/40_custom, replace correct msdos partition
+ from grub-prob output and correct UUID from fstab or blkid</p>
+
+ <pre>
+ # grub-probe --target=hints_string /
+ </pre>
+
+ <h2 id="checkup">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>
+
+ <pre>
+ # qemu-system-x86_64 -curses -usb -usbdevice disk:/dev/sdb
+ </pre>
+
+ <pre>
+ # qemu-system-x86_64 -kernel /boot/vmlinuz-linux -initrd /boot/initramfs-linux.img -append root=/dev/sdb /dev/sdb2
+ </pre>
+
+ <pre>
+ # qemu-img convert crux-img.qcow2 -O raw crux.img
+ # dd if=crux.img of=/dev/sdX
+ </pre>
+
+ <a href="index.html">Install Index</a>
+ <p>This is part of the SysDoc Manual.
+ Copyright (C) 2016
+ Silvino Silva.
+ See the file <a href="../fdl-1.3-standalone.html">Gnu Free Documentation License</a>
+ for copying conditions.</p>
+ </body>
+</html>