diff options
author | Silvino Silva <silvino@bk.ru> | 2018-02-23 14:11:23 +0000 |
---|---|---|
committer | Silvino Silva <silvino@bk.ru> | 2018-02-23 14:11:23 +0000 |
commit | b1f78adfe84a641cab003b115de54328d634e13f (patch) | |
tree | 1cc43c3cab8f68226ee7b304e0426beedd89d1a4 /core | |
parent | f1b8c0c4eefb21e655864b901b227f3af191e84d (diff) | |
download | doc-b1f78adfe84a641cab003b115de54328d634e13f.tar.gz |
core dracut back to reboot
Diffstat (limited to 'core')
-rw-r--r-- | core/index.html | 6 | ||||
-rw-r--r-- | core/linux.html | 46 | ||||
-rw-r--r-- | core/reboot.html | 46 |
3 files changed, 50 insertions, 48 deletions
diff --git a/core/index.html b/core/index.html index 485bf65..2a8e4b9 100644 --- a/core/index.html +++ b/core/index.html @@ -60,8 +60,9 @@ <li><a href="reboot.html">1.4. Prepare for reboot</a> <ul> - <li><a href="reboot.html#linux">1.4.1. Port kernel</a></li> - <li><a href="reboot.html#grub">1.4.3. Configuring Grub</a></li> + <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#checkup">1.4.4. Checkup</a></li> </ul> </li> @@ -76,7 +77,6 @@ <li><a href="linux.html#linuxlibre">2.1.1. Port Linux libre</a></li> <li><a href="linux.html#kinstall">2.1.2. Manual install</a></li> <li><a href="linux.html#kuninstall">2.1.3. Manual remove</a></li> - <li><a href="linux.html#dracut">2.1.4. Dracut</a></li> </ul> </li> <li><a href="hardening.html">2.2. Hardening</a> diff --git a/core/linux.html b/core/linux.html index c52f9b8..94c98f0 100644 --- a/core/linux.html +++ b/core/linux.html @@ -18,8 +18,9 @@ <h2 id="#linuxlibre">2.1.1. Port Linux Libre</h2> <p>Default crux configuration can be obtained from iso, - kernel port depends on dracut and grub but is not required - to install them. To build and install this port using prt-get;</p> + 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> <pre> $ prt-get depinst linux-libre @@ -289,47 +290,6 @@ $ sudo rm /boot/System.map-4.9.12-grsec </pre> - <h2 id="dracut">2.1.4. Dracut</h2> - - <p>Install dracut;</p> - - <pre> - # cd /usr/ports/c9-ports/dracut - # 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" - - # Mount / and /usr read-only by default. - ro_mnt="no" - - # 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 for - port linux-blob kernel;</p> - - <pre> - # dracut -v /boot/initramfs-4.9.11-blob.img 4.9.11-blob - </pre> - <a href="index.html">Core OS Index</a> <p>This is part of the c9-doc Manual. Copyright (C) 2017 diff --git a/core/reboot.html b/core/reboot.html index aa45a0f..d8793a6 100644 --- a/core/reboot.html +++ b/core/reboot.html @@ -31,7 +31,7 @@ /bin/bash --login </pre> - <h2 id="linux">1.4.1. Port kernel</h2> + <h2 id="linux">1.4.1. Kernel</h2> <p>Core ports have two <a href="linux.html">linux kernels</a>, @@ -54,7 +54,48 @@ # pkgadd /usr/ports/packages/linux-libre#4.9.11-2.pkg.tar.gz </pre> - <h2 id="grub">1.4.3. Configuring Grub2</h2> + <h2 id="dracut">1.4.2. Initram</h2> + + <p>Install dracut;</p> + + <pre> + # cd /usr/ports/c9-ports/dracut + # 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" + + # Mount / and /usr read-only by default. + ro_mnt="no" + + # 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 for + port linux-blob kernel;</p> + + <pre> + # dracut -v /boot/initramfs-4.9.9-blob.img 4.9.9-blob + </pre> + + <h2 id="grub">1.4.3. Grub</h2> <p>Create grub file in /etc/default/grub with values;</p> @@ -127,6 +168,7 @@ linux (loop)/boot/vmlinuz64 loglevel=3 cde initrd (loop)/boot/corepure64.gz } + </pre> <h2 id="checkup">1.4.4. Checkup</h2> |