]> git.proxmox.com Git - pve-kernel-jessie.git/commitdiff
move /lib/modules/.../build as file into .deb
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Wed, 15 Jun 2016 13:30:49 +0000 (15:30 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 15 Jun 2016 14:22:21 +0000 (16:22 +0200)
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
headers-postinst.in

index f02e9e237bc8ed4335ea0787c9d9b6b2bd4b0608..d237049b8d5cc5d818333f428f091da50f6c5eaa 100644 (file)
--- 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}
 
index 4536e246d35e88a32ca08a06a7adb106d8e06a71..acb49820e7f71a67f8183983518ccce64a645af9 100644 (file)
@@ -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