aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorSilvino Silva <silvino@bk.ru>2018-03-08 18:21:30 +0000
committerSilvino Silva <silvino@bk.ru>2018-03-08 18:21:30 +0000
commitd2a0dfc5173d2a28dab2dde89280c154755f876c (patch)
tree5672cbb923291a2c6e99d29f4ed425e7261cc6f5 /core
parent52f5effca30b476b427c2d3a7518c91c0e292fa4 (diff)
downloaddoc-d2a0dfc5173d2a28dab2dde89280c154755f876c.tar.gz
core reboot and linux revision
Diffstat (limited to 'core')
-rw-r--r--core/index.html2
-rw-r--r--core/linux.html61
-rw-r--r--core/reboot.html44
3 files changed, 44 insertions, 63 deletions
diff --git a/core/index.html b/core/index.html
index 7a1d21e..5b6ec2d 100644
--- a/core/index.html
+++ b/core/index.html
@@ -62,7 +62,7 @@
<ul>
<li><a href="reboot.html#linux">1.4.1. Kernel</a></li>
<li><a href="reboot.html#dracut">1.4.2. Dracut</a></li>
- <li><a href="reboot.html#grub">1.4.3. Initram</a></li>
+ <li><a href="reboot.html#grub">1.4.3. Grub</a></li>
<li><a href="reboot.html#checkup">1.4.4. Checkup</a></li>
</ul>
</li>
diff --git a/core/linux.html b/core/linux.html
index 94c98f0..d98507a 100644
--- a/core/linux.html
+++ b/core/linux.html
@@ -7,6 +7,7 @@
<body>
<a href="index.html">Core OS Index</a>
+
<h1 id="kernel">2.1. Kernel Linux</h1>
<p>Linux is a monolith kernel, a big one ! Visit
@@ -18,12 +19,13 @@
<h2 id="#linuxlibre">2.1.1. Port Linux Libre</h2>
<p>Default crux configuration can be obtained from iso,
- kernel port depends on <a href="reboot.html#dracut">dracut</a> and grub
- but is not required to install them. To build and install this port
- using prt-get;</p>
+ kernel port don't depend on
+ <a href="reboot.html#dracut">dracut</a> and grub2
+ is recommended to install them. To build and install this port
+ use prt-get;</p>
<pre>
- $ prt-get depinst linux-libre
+ $ prt-get depinst linux-gnu
</pre>
<h2 id="kinstall">2.1.2. Manual Install</h2>
@@ -32,46 +34,27 @@
<a href="http://linux-libre.fsfla.org/pub/linux-libre/releases/">linux libre</a>,
or using the port system;</p>
- <p>Crux iso comes with config that is more generic than used on
- linux-libre port, crux default is a good starting point to
- personalize according to your needs (build default, detect modules
- needed);</p>
+ <p>Linux-gnu port comes with default config that is a good starting
+ point to personalize according to your needs.</p>
<pre>
$ mkdir ~/kernel
$ cd ~/kernel
- $ tar xf /usr/ports/distfiles/linux-libre-4.9.12-grsec.tar.xz
- $ cd linux-4.9.12/
+ $ cd linux-4.9.86/
</pre>
- <p><a href="https://grsecurity.net">Grsecurity</a> patch for
- <a href="https://grsecurity.net/test/grsecurity-3.1-4.9.12-201702231830.patch">4.9.12</a>.
- Gcc <a href="https://github.com/graysky2/kernel_gcc_patch/">graysky2</a> kernel_gcc_patch (<a href="https://github.com/graysky2/kernel_gcc_patch/archive/master.zip">master.zip</a>)
- that adds more cpu options (FLAGS native).
- Check <a href="ports/linux-libre/Pkgfile">Pkgfile</a>
- for instructions and more patches used on linux-libre port.
- Read patching your kernel with
- <a href="https://en.wikibooks.org/wiki/Grsecurity/Configuring_and_Installing_grsecurity#Patching_Your_Kernel_with_grsecurity">gresecurity</a>.</p>
-
- <p>Apply grsecurity patch;</p>
-
- <pre>
- $ patch -p1 &lt; ../grsecurity-3.1-4.9.12-201702231830.patch
- </pre>
-
- <p>Set correct version;</p>
-
- <pre>
- $ rm localversion-grsec
- </pre>
+ <p>Gcc <a href="https://github.com/graysky2/kernel_gcc_patch/">graysky2</a> kernel_gcc_patch (<a href="https://github.com/graysky2/kernel_gcc_patch/archive/master.zip">master.zip</a>)
+ that adds more cpu options (FLAGS) for native builds.
+ Check <a href="ports/linux-gnu/Pkgfile">Pkgfile</a>
+ for instructions how linux-gnu port is built.</p>
- <p>Edit Makefile and replace EXTRAVERSION;</p>
+ <p>Check version on Makefile;</p>
<pre>
VERSION = 4
PATCHLEVEL = 9
- SUBLEVEL = 12
- EXTRAVERSION = -grsec
+ SUBLEVEL = 86
+ EXTRAVERSION = -gnu
NAME = Roaring Lionus
</pre>
@@ -272,8 +255,8 @@
<pre>
$ make -j $(nproc) bzImage modules
$ sudo make modules_install
- $ sudo cp arch/x86/boot/bzImage /boot/vmlinuz-4.9.12-grsec
- $ sudo cp System.map /boot/System.map-4.9.12-grsec
+ $ sudo cp arch/x86/boot/bzImage /boot/vmlinuz-4.9.86-gnu
+ $ sudo cp System.map /boot/System.map-4.9.86-gnu
</pre>
<p>Update grub;</p>
@@ -285,14 +268,14 @@
<h2 id="kuninstall">2.1.3. Manual Remove</h2>
<pre>
- $ sudo rm -r /lib/modules/4.9.12-grsec
- $ sudo rm /boot/vmlinuz-4.9.12-grsec
- $ sudo rm /boot/System.map-4.9.12-grsec
+ $ sudo rm -r /lib/modules/4.9.86-gnu
+ $ sudo rm /boot/vmlinuz-4.9.86-gnu
+ $ sudo rm /boot/System.map-4.9.86-gnu
</pre>
<a href="index.html">Core OS Index</a>
<p>This is part of the c9-doc Manual.
- Copyright (C) 2017
+ Copyright (C) 2018
c9 team.
See the file <a href="../fdl-1.3-standalone.html">Gnu Free Documentation License</a>
for copying conditions.</p>
diff --git a/core/reboot.html b/core/reboot.html
index d8793a6..210c20f 100644
--- a/core/reboot.html
+++ b/core/reboot.html
@@ -33,28 +33,26 @@
<h2 id="linux">1.4.1. 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/linux-libre
+ <p>There is possible to install kernel using a port,
+ c9-ports have a <a href="ports/linux-libre">linux-gnu</a>
+ port for that. Linux-gnu kernel is a true source based kernel that
+ respects your freedoms, is x86_64 and generic configured. Read
+ <a href="linux.html">linux kernel</a> for more information.</p>
+
+ <p>If you don't have the binary package;</p>
+
+ <pre>
+ # cd /usr/ports/c9-ports/linux-gnu
# pkgmk -d
- # pkgadd /usr/ports/packages/linux-libre#4.9.11-2.pkg.tar.gz
</pre>
- <h2 id="dracut">1.4.2. Initram</h2>
+ <p>Install kernel;</p>
+
+ <pre>
+ # pkgadd /usr/ports/packages/linux-gnu#4.9.86-2.pkg.tar.gz
+ </pre>
+
+ <h2 id="dracut">1.4.2. Dracut</h2>
<p>Install dracut;</p>
@@ -92,7 +90,7 @@
port linux-blob kernel;</p>
<pre>
- # dracut -v /boot/initramfs-4.9.9-blob.img 4.9.9-blob
+ # dracut -v /boot/initramfs-4.9.86-gnu.img 4.9.86-gnu
</pre>
<h2 id="grub">1.4.3. Grub</h2>
@@ -126,8 +124,8 @@
<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
+ Found linux image: /boot/vmlinuz-4.9.86-gnu
+ Found initrd image: /boot/initramfs-4.9.86-gnu.img
done
#
</pre>
@@ -184,7 +182,7 @@
<h3>Debug initram</h3>
<pre>
- /usr/lib/dracut/skipcpio /boot/initramfs-4.9.11-blob.img | gunzip -c | cpio -i -d
+ /usr/lib/dracut/skipcpio /boot/initramfs-4.9.86-gnu.img | gunzip -c | cpio -i -d
36875 blocks
</pre>