Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
aw-tech:kexec [2015/09/06 19:06]
polyzen [Systemd Unit]
aw-tech:kexec [2017/05/18 23:54] (current)
fsckd move to :tech
Line 1: Line 1:
-====== kexec ====== +[[:tech:kexec:start]]
- +
-Using kexec to load a newer kernel. In this case, linux-grsec. +
- +
-===== linux-grsec ===== +
- +
-  * ArchWiki: ​[[archwiki>​Grsecurity]] +
-  * Packages: +
-    * [[archpkg>​community/​x86_64/​linux-grsec]] +
-    * [[archpkg>​community/​x86_64/​linux-grsec-headers]] +
- +
-===== systemd Unit ===== +
- +
-  * http://​0wned.it/​2014/​08/​27/​custom-kernel-on-a-digitalocean-droplet-the-right-way/​ +
-  * DigitalOcean Debian to Arch conversion [[github>​gh2o/​digitalocean-debian-to-arch/​blob/​master/​install.sh|script]] - source of the unit file below (with some differences) +
-  * ArchWiki[[archwiki>​Kexec]] +
- +
-Save to ''/​etc/​systemd/​system/​kexec-grsec.service''​ and enable. Then reboot. The command ''​uname -r''​ should show the new version running. +
- +
-<code - kexec-grsec.service>​ +
-[Unit] +
-Description=Reboots into Grsecurity kernel +
-ConditionKernelCommandLine=!archkernel +
-DefaultDependencies=no +
-Before=local-fs-pre.target systemd-remount-fs.service +
- +
-[Service] +
-Type=oneshot +
-ExecStart=/​sbin/​kexec /​boot/​vmlinuz-linux-grsec --initrd=/​boot/​initramfs-linux-grsec.img --reuse-cmdline --command-line=archkernel +
- +
-[Install] +
-WantedBy=sysinit.target +
-</​code>​+

aw-tech/kexec.txt · Last modified: 2017/05/18 23:54 by fsckd