aboutsummaryrefslogtreecommitdiffstats
path: root/core/reboot.html
diff options
context:
space:
mode:
Diffstat (limited to 'core/reboot.html')
-rw-r--r--core/reboot.html97
1 files changed, 47 insertions, 50 deletions
diff --git a/core/reboot.html b/core/reboot.html
index b1ff71b..aa45a0f 100644
--- a/core/reboot.html
+++ b/core/reboot.html
@@ -31,51 +31,27 @@
/bin/bash --login
</pre>
- <h2 id="linux">1.4.1. Linux Kernel</h2>
-
- <p>Install kernel with default crux configuration using pkgutils;</p>
-
- <pre>
- # cd /usr/ports/c9-ports/linux-crux
- # pkgmk -d
- # pkgadd /usr/ports/packages/linux-crux#4.1.30-1.pkg.tar.gz
- </pre>
-
- <h2 id="dracut">1.4.2. Dracut - Initramfs</h2>
-
- <p>Install dracut;</p>
+ <h2 id="linux">1.4.1. Port kernel</h2>
+
+ <p>Core ports have two
+ <a href="linux.html">linux kernels</a>,
+ <a href="ports/linux-libre">linux-libre</a> and
+ <a href="ports/linux-blob">linux-blob</a>.
+ Port linux-libre kernel is a true source based kernel that
+ respects your freedoms, is x86_64 but not generic configured,
+ select modules (drivers) for your hardware, for example
+ correct graphic driver and disk. Port linux-blob is dangerous,
+ contain blobs (from bad corporations).</p>
+
+ <p>Both ports apply grsecurity patch and are configured in
+ a way that break building some packages and have performance
+ impact in building process. Solution is to have several kernels,
+ production, testing, debug with one of them without grsecurity.</p>
<pre>
- # cd /usr/ports/c9-ports/dracut
+ # cd /usr/ports/c9-ports/linux-libre
# pkgmk -d
- # pkgadd /usr/ports/packages/dracut#044-2.pkg.tar.gz
- </pre>
-
- <p>Review configuration file;</p>
-
- <pre>
- # PUT YOUR CONFIG IN separate files
- # in /etc/dracut.conf.d named "<name>.conf"
-
- # Equivalent to -H
- hostonly="yes"
-
- # Equivalent to -m "module module module"
- dracutmodules+="dash kernel-modules rootfs-block udev-rules usrmount base fs-lib shutdown"
-
- # Equivalent to -a "module"
- add_dracutmodules+="caps debug"
-
- # Equivalent to -o "module"
- #omit_dracutmodules+="systemd systemd-bootchart systemd-networkd systemd-initrd"
-
- # SEE man dracut.conf(5) for options
- </pre>
-
- <p>Run dracut to create init ram filesystem;</p>
-
- <pre>
- # dracut -v /boot/initramfs-4.1.30-crux.img 4.1.30-crux
+ # pkgadd /usr/ports/packages/linux-libre#4.9.11-2.pkg.tar.gz
</pre>
<h2 id="grub">1.4.3. Configuring Grub2</h2>
@@ -116,21 +92,42 @@
</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>
+ /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>
- <p>To add rw as default edit /etc/grub.d/10_linux file, current
- version change line 138 to;</p>
+ <h3>1.4.3.1. 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>
- echo '$message'
- linux ${rel_dirname}/${basename} root=${linux_root_device_thisversion} rw ${args}
+ $ 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
@@ -145,13 +142,13 @@
<h3>Debug initram</h3>
<pre>
- /usr/lib/dracut/skipcpio /boot/initramfs-4.1.32-c9k9.img | gunzip -c | cpio -i -d
+ /usr/lib/dracut/skipcpio /boot/initramfs-4.9.11-blob.img | gunzip -c | cpio -i -d
36875 blocks
</pre>
<a href="index.html">Core OS Index</a>
<p>This is part of the c9-doc Manual.
- Copyright (C) 2016
+ Copyright (C) 2017
c9 team.
See the file <a href="../fdl-1.3-standalone.html">Gnu Free Documentation License</a>
for copying conditions.</p>