[pve-devel] [PATCH kernel] move /lib/modules/.../build as file into .deb
Fabian Grünbichler
f.gruenbichler at proxmox.com
Wed Jun 15 15:30:49 CEST 2016
this symlink should not be created in the postinst,
but simply included in the pve-headers-xx .deb
this is a followup to the recently dropped dependency of
pve-headers-xx on pve-kernel-xx, and makes this more
consistent with how upstream (Ubuntu) handles the creation
of this symlink.
---
Makefile | 2 ++
headers-postinst.in | 2 --
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index f02e9e2..d237049 100644
--- a/Makefile
+++ b/Makefile
@@ -388,6 +388,8 @@ ${HDR_DEB} hdr: .compile_mark headers-control.in headers-postinst.in
cd ${KERNEL_SRC}; (find arch/x86 -name include -type d -print | \
xargs -n1 -i: find : -type f) | \
cpio -pd --preserve-modification-time $(headers_dir)
+ mkdir -p ${headers_tmp}/lib/modules/${KVNAME}
+ ln -sf /usr/src/linux-headers-${KVNAME} ${headers_tmp}/lib/modules/${KVNAME}/build
dpkg-deb --build $(headers_tmp) ${HDR_DEB}
#lintian ${HDR_DEB}
diff --git a/headers-postinst.in b/headers-postinst.in
index 4536e24..acb4982 100644
--- a/headers-postinst.in
+++ b/headers-postinst.in
@@ -6,8 +6,6 @@ set -e
case "$1" in
configure)
- ln -sf /usr/src/linux-headers-@@KVNAME@@ /lib/modules/@@KVNAME@@/build
-
# There are three sub-cases:
if test "${2+set}" != set; then
# We're being installed by an ancient dpkg which doesn't remember
--
2.1.4
More information about the pve-devel
mailing list