From b01814230a0da3f6f90be16cd89766e177a30efa Mon Sep 17 00:00:00 2001 From: Hugo Villeneuve Date: Tue, 16 Sep 2025 11:48:38 -0400 Subject: [PATCH] hvk: remove old archive Signed-off-by: Hugo Villeneuve --- scripts/hvk-compile.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/hvk-compile.sh b/scripts/hvk-compile.sh index 6db238b..7057a20 100755 --- a/scripts/hvk-compile.sh +++ b/scripts/hvk-compile.sh @@ -6,6 +6,7 @@ SCRIPTPATH=$(dirname ${SCRIPT}) source ${SCRIPTPATH}/hvk-common.sh DEPLOYDIR=rootfs +ARCHIVE_LN=linux-latest.tar.xz print_usage() { @@ -112,6 +113,11 @@ function rootfs_install() { } function rootfs_archive() { + if [ -L "${ARCHIVE_LN}" ]; then + rm $(readlink ${ARCHIVE_LN}) + rm ${ARCHIVE_LN} + fi + if [ -f "include/config/kernel.release" ]; then archive="linux-$(cat include/config/kernel.release).tar.xz" fi @@ -124,6 +130,8 @@ function rootfs_archive() { pushd ${deploydir} tar cf - * | xz > ../${archive} popd + + ln -sf ${archive} ${ARCHIVE_LN} } KMAKE="${KMAKE} ${warnings_opts}" -- 2.20.1