4.19.3-2 (clr 4.19.2-662) Add vmlinuz symlink for systemd
This commit is contained in:
parent
19bdcfd7ec
commit
43c4ca5fb0
2 changed files with 10 additions and 5 deletions
2
.SRCINFO
2
.SRCINFO
|
@ -1,6 +1,6 @@
|
||||||
pkgbase = linux-clear
|
pkgbase = linux-clear
|
||||||
pkgver = 4.19.3
|
pkgver = 4.19.3
|
||||||
pkgrel = 1
|
pkgrel = 2
|
||||||
url = https://github.com/clearlinux-pkgs/linux
|
url = https://github.com/clearlinux-pkgs/linux
|
||||||
arch = x86_64
|
arch = x86_64
|
||||||
license = GPL2
|
license = GPL2
|
||||||
|
|
13
PKGBUILD
13
PKGBUILD
|
@ -63,13 +63,13 @@ _rev_override="n"
|
||||||
|
|
||||||
### IMPORTANT: Do no edit below this line unless you know what you're doing
|
### IMPORTANT: Do no edit below this line unless you know what you're doing
|
||||||
|
|
||||||
pkgbase=linux-clear
|
|
||||||
_major=4.19
|
_major=4.19
|
||||||
_minor=3
|
_minor=3
|
||||||
pkgver=${_major}.${_minor}
|
|
||||||
_srcname=linux-${_major}
|
_srcname=linux-${_major}
|
||||||
pkgrel=1
|
|
||||||
_clr=${_major}.2-662
|
_clr=${_major}.2-662
|
||||||
|
pkgbase=linux-clear
|
||||||
|
pkgver=${_major}.${_minor}
|
||||||
|
pkgrel=2
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
url="https://github.com/clearlinux-pkgs/linux"
|
url="https://github.com/clearlinux-pkgs/linux"
|
||||||
license=('GPL2')
|
license=('GPL2')
|
||||||
|
@ -201,13 +201,18 @@ _package() {
|
||||||
cd ${_srcname}
|
cd ${_srcname}
|
||||||
|
|
||||||
msg2 "Installing boot image..."
|
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..."
|
msg2 "Installing modules..."
|
||||||
local modulesdir="$pkgdir/usr/lib/modules/$kernver"
|
local modulesdir="$pkgdir/usr/lib/modules/$kernver"
|
||||||
mkdir -p "$modulesdir"
|
mkdir -p "$modulesdir"
|
||||||
make INSTALL_MOD_PATH="$pkgdir/usr" modules_install
|
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,
|
# a place for external modules,
|
||||||
# with version file for building modules and running depmod from hook
|
# with version file for building modules and running depmod from hook
|
||||||
local extramodules="extramodules$_kernelname"
|
local extramodules="extramodules$_kernelname"
|
||||||
|
|
Loading…
Reference in a new issue