[arch-commits] Commit in linux-zen/trunk (PKGBUILD)
Jan Steffens
heftig at archlinux.org
Thu Nov 22 17:44:32 UTC 2018
Date: Thursday, November 22, 2018 @ 17:44:31
Author: heftig
Revision: 340294
4.19.3.zen1-2: Add vmlinuz symlink for systemd
Modified:
linux-zen/trunk/PKGBUILD
----------+
PKGBUILD | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-11-22 17:44:28 UTC (rev 340293)
+++ PKGBUILD 2018-11-22 17:44:31 UTC (rev 340294)
@@ -6,7 +6,7 @@
#pkgbase=linux-custom # Build kernel with a different name
_srcver=4.19.3-zen1
pkgver=${_srcver//-/.}
-pkgrel=1
+pkgrel=2
arch=(x86_64)
url="https://github.com/zen-kernel/zen-kernel/commits/v$_srcver"
license=(GPL2)
@@ -77,7 +77,8 @@
cd $_srcname
msg2 "Installing boot image..."
- install -Dm644 "$(make -s image_name)" "$pkgdir/boot/vmlinuz-$pkgbase"
+ local image="$pkgdir/boot/vmlinuz-$pkgbase"
+ install -Dm644 "$(make -s image_name)" "$image"
msg2 "Installing modules..."
local modulesdir="$pkgdir/usr/lib/modules/$kernver"
@@ -84,6 +85,10 @@
mkdir -p "$modulesdir"
make INSTALL_MOD_PATH="$pkgdir/usr" modules_install
+ # systemd expects to find the kernel here to allow hibernation
+ # https://github.com/systemd/systemd/commit/edda44605f06a41fb86b7ab8128dcf99161d2344
+ ln -sr "$image" "$modulesdir/vmlinuz"
+
# a place for external modules,
# with version file for building modules and running depmod from hook
local extramodules="extramodules$_kernelname"
More information about the arch-commits
mailing list