about summary refs log tree commit diff stats
path: root/core/linux.html
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/linux.html
parent52f5effca30b476b427c2d3a7518c91c0e292fa4 (diff)
downloaddoc-d2a0dfc5173d2a28dab2dde89280c154755f876c.tar.gz
core reboot and linux revision
Diffstat (limited to 'core/linux.html')
-rw-r--r--core/linux.html61
1 files changed, 22 insertions, 39 deletions
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>