Skip to main content
Topic: Linux-hardened + hibernation (Read 555 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Linux-hardened + hibernation

Hi everyone,

I have an installation of Artix-OpenRC w/ the Linux-hardened kernel on a partially encrypted (unencrypted /boot partition) drive. I am trying to set up hibernation, since it's not supported by default (I chose the linux-hardened kernel since it's the recommended option in the guide). How do I do it? There is this package in the AUR, but it seems to be broken as of today.

Reading this article, I presume one has to build a custom kernel. Will these instructions also work for Artix? Do some of you (who maybe achieved the same thing) have some recommendations?
 
Thanks :)

 

Re: Linux-hardened + hibernation

Reply #1
UPDATE:

I managed to retrieve the linux-hardened kernel source code via asp:

Code: [Select]
asp update linux-hardened
asp export linux-hardened

Then, I modified config to enable hibernation (uncomment CONFIG_HIBERNATION) and applied this patch to PKGBUILD:

Code: [Select]
diff --git a/trunk/PKGBUILD b/trunk/PKGBUILD
index cd92940..707752a 100644
--- a/trunk/PKGBUILD
+++ b/trunk/PKGBUILD
@@ -3,7 +3,8 @@
 # Contributor: Tobias Powalowski <[email protected]>
 # Contributor: Thomas Baechler <[email protected]>
 
-pkgbase=linux-hardened
+_pkgbase=linux-hardened
+pkgbase=linux-hardened-hibernate
 pkgver=5.19.8.hardened2
 pkgrel=1
 pkgdesc='Security-Hardened Linux'
@@ -20,7 +21,7 @@ _srcname=linux-${pkgver%.*}
 _srctag=${pkgver%.*}-${pkgver##*.}
 source=(
   https://www.kernel.org/pub/linux/kernel/v${pkgver%%.*}.x/${_srcname}.tar.{xz,sign}
-  https://github.com/anthraxx/${pkgbase}/releases/download/${_srctag}/${pkgbase}-${_srctag}.patch{,.sig}
+  https://github.com/anthraxx/${_pkgbase}/releases/download/${_srctag}/${_pkgbase}-${_srctag}.patch{,.sig}
   config         # the main kernel config file
 )
 validpgpkeys=(

After that, I managed to update the checksums and my kernel is now compiling. I have one question: since I follow an Arch-related procedure, I was wondering if there may be incompatibilities due to the fact that I'm using Artix. May be a stupid question, but I'm pretty new to this. Since I retrieved the source through asp on a machine running Artix (i.e. with /etc/pacman.conf including the Artix repos), there should be no issue... But please, correct me if I'm wrong. :)