From: Hugo Villeneuve Date: Tue, 16 Sep 2025 15:48:38 +0000 (-0400) Subject: hvk: remove old archive X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=b01814230a0da3f6f90be16cd89766e177a30efa;p=hvutilities.git hvk: remove old archive Signed-off-by: Hugo Villeneuve --- 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}"