From 62e8ecc6baf08a365cb5952bd6eca5abd6a4a39f Mon Sep 17 00:00:00 2001 From: Hugo Villeneuve Date: Wed, 6 Nov 2024 12:28:55 -0500 Subject: [PATCH] hvk: clean old modules directory before installing new modules --- scripts/hvk-compile.sh | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.20.1