From: Hugo Villeneuve Date: Wed, 6 Nov 2024 17:28:55 +0000 (-0500) Subject: hvk: clean old modules directory before installing new modules X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=62e8ecc6baf08a365cb5952bd6eca5abd6a4a39f;p=hvutilities.git hvk: clean old modules directory before installing new modules --- diff --git a/scripts/hvk-compile.sh b/scripts/hvk-compile.sh index 0662b8a..036b2fe 100755 --- a/scripts/hvk-compile.sh +++ b/scripts/hvk-compile.sh @@ -108,6 +108,9 @@ fi function rootfs_install() { mkdir -p ${deploydir} + # Clean old modules directory: + rm -rf ${deploydir}/lib/modules + if [ x"${CONFIG_MODULES}" = x"1" ]; then ${KMAKE} INSTALL_MOD_PATH=${deploydir} modules_install fi