summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-09-04 07:12:31 +0200
committerChristian Poessinger <christian@poessinger.com>2020-09-04 07:12:31 +0200
commitd8df53ebdea1109fe6f443a1f28376ce1d6842c3 (patch)
tree1dd7788c939be783af59ea824020357fa4737017 /packages
parent43a67e96b17d927f2adf37560857196edc5ead63 (diff)
downloadvyos-build-d8df53ebdea1109fe6f443a1f28376ce1d6842c3.tar.gz
vyos-build-d8df53ebdea1109fe6f443a1f28376ce1d6842c3.zip
Intel: QAT: 2853: run depmod when building package to improve boot time
Instead of running "depmod -a" on every boot, run it once during ISO build process.
Diffstat (limited to 'packages')
-rwxr-xr-xpackages/linux-kernel/build-intel-qat.sh6
-rw-r--r--packages/linux-kernel/vyos-intel-qat.postinst2
2 files changed, 5 insertions, 3 deletions
diff --git a/packages/linux-kernel/build-intel-qat.sh b/packages/linux-kernel/build-intel-qat.sh
index bf431b0..8e4aabb 100755
--- a/packages/linux-kernel/build-intel-qat.sh
+++ b/packages/linux-kernel/build-intel-qat.sh
@@ -80,9 +80,13 @@ do
# und thus lead to duplicated files
find ${DEBIAN_DIR} -name "modules.*" | xargs rm -f
cd ${CWD}
+
+ echo "#!/bin/sh" > ${DEBIAN_DIR}/vyos-intel-qat.postinst
+ echo "/sbin/depmod -a ${KERNEL_VERSION}${KERNEL_SUFFIX}" >> ${DEBIAN_DIR}/vyos-intel-qat.postinst
+
fpm --input-type dir --output-type deb --name vyos-intel-${DRIVER_NAME} \
--version ${DRIVER_VERSION}${DRIVER_VERSION_EXTRA} --deb-compression gz \
- -C ${DEBIAN_DIR} --after-install ${CWD}/vyos-intel-qat.postinst
+ -C ${DEBIAN_DIR} --after-install ${DEBIAN_DIR}/vyos-intel-qat.postinst
echo "I: Cleanup ${DRIVER_NAME} source"
cd ${CWD}
diff --git a/packages/linux-kernel/vyos-intel-qat.postinst b/packages/linux-kernel/vyos-intel-qat.postinst
deleted file mode 100644
index 35d5de0..0000000
--- a/packages/linux-kernel/vyos-intel-qat.postinst
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/sh
-depmod -a