aboutsummaryrefslogtreecommitdiffstats
path: root/core/reboot.html
diff options
context:
space:
mode:
authorSilvino Silva <silvino@bk.ru>2017-02-28 19:40:17 +0000
committerSilvino Silva <silvino@bk.ru>2017-02-28 19:40:17 +0000
commit0fd1b8a98b4d31a97070a983114e18bc6f9a7290 (patch)
treef2315b8469527eb94db87b21b342a7cd0ebfc624 /core/reboot.html
parent5ce31218b413faf6d860b03fc222b2e0b66f4aef (diff)
downloaddoc-0fd1b8a98b4d31a97070a983114e18bc6f9a7290.tar.gz
core reboot re-added grub and rescue iso
Diffstat (limited to 'core/reboot.html')
-rw-r--r--core/reboot.html74
1 files changed, 74 insertions, 0 deletions
diff --git a/core/reboot.html b/core/reboot.html
index fd1adfc..c60265a 100644
--- a/core/reboot.html
+++ b/core/reboot.html
@@ -54,6 +54,80 @@
# pkgadd /usr/ports/packages/linux-libre#4.9.11-2.pkg.tar.gz
</pre>
+ <h2 id="grub">1.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.30-crux
+ Found initrd image: /boot/initramfs-4.1.30-crux.img
+ done
+ #
+ </pre>
+
+ <p>Check /boot/grub/grub.cfg, if is wrong add menu to
+ /etc/grub.d/40_custom, replace correct partition from grub-prob
+ output and correct UUID from fstab or blkid</p>
+
+ <pre>
+ # grub-probe --target=hints_string /
+ </pre>
+
+ <h3>Rescue iso</h3>
+
+ <p>Simple way to have "resque" system is to mount boot as read only,
+ this assures that even as root nothing can be changed without remount.
+ To have different system independent from host grub will have entry to
+ boot small iso on /boot partition;</p>
+
+ <p>Crux iso is not used because at the moment it fails to
+ find "crux-media" during or after init.</p>
+
+ <pre>
+ $ wget http://ftp.nluug.nl/os/Linux/distr/tinycorelinux/7.x/x86/release/CorePlus-current.iso
+ $ sudo mv CorePlus-current.iso /boot/tinycore.iso
+ </pre>
+
+ <p>Edit /etc/grub.d/40_custom</p>
+
+ <pre>
+
+ menuentry "Rescue" {
+ load_video
+ set gfxpayload=keep
+
+ set isofile="/tinycore.iso"
+ loopback loop $isofile
+ linux (loop)/boot/vmlinuz64 loglevel=3 cde
+ initrd (loop)/boot/corepure64.gz
+ }
+
<h2 id="checkup">1.4.4. Checkup</h2>
<p>If you have qemu installed you can see if it boots, in this