mirror of
https://github.com/dynup/kpatch
synced 2025-04-17 04:25:57 +00:00
kpatch-build: Ubuntu signed/unsigned kernel image package fix
In Ubuntu 18.04 LTS (but not in 16.04 LTS), the "linux" source package no longer builds the "linux-image-*" binary kernel image packages directly, but instead, it produces the "linux-image-unsigned-*" binary packages, and the "linux-signed" source package then produces the (signed) "linux-image-*" binary packages from the unsigned binaries. This means that querying the target kernel's linux-image-* package for its source package will yield a source package that is just a wrapper, and does not actually contain the kernel source code. Deal with this by removing the "-signed" substring from the kernel source package name if it is present. This makes kpatch-build work on Ubuntu 18.04. Signed-off-by: Lennert Buytenhek <buytenh@wantstofly.org>
This commit is contained in:
parent
b974770197
commit
932e0377bd
@ -623,7 +623,7 @@ else
|
||||
sublevel="SUBLEVEL ="
|
||||
fi
|
||||
|
||||
pkgname="$(dpkg-query -W -f='${Source}' "linux-image-$ARCHVERSION")"
|
||||
pkgname="$(dpkg-query -W -f='${Source}' "linux-image-$ARCHVERSION" | sed s/-signed//)"
|
||||
pkgver="$(dpkg-query -W -f='${Version}' "linux-image-$ARCHVERSION")"
|
||||
dscname="${pkgname}_${pkgver}.dsc"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user