mirror of
https://github.com/vyos/vyos-build.git
synced 2025-10-01 20:28:40 +02:00
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.
This commit is contained in:
parent
43a67e96b1
commit
d8df53ebde
@ -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}
|
||||
|
||||
@ -1,2 +0,0 @@
|
||||
#!/bin/sh
|
||||
depmod -a
|
||||
Loading…
x
Reference in New Issue
Block a user