Suppression de l'effacement du build selon les choix de compilation

This commit is contained in:
Vidal Gerard
2025-10-30 08:02:51 +01:00
parent 698e9d4398
commit 1030de2798
3 changed files with 15 additions and 12 deletions

View File

@@ -875,12 +875,13 @@ else # BUILD_KERNEL=false
rm -fr "${temp_dir}"
rm -f "${R}"/tmp/kernel.deb
fi
# Check if kernel installation was successful
KERNEL="$(ls -1 "${R}"/boot/firmware/kernel* | sort | tail -n 1)"
if [ -z "$KERNEL" ] ; then
echo "error: kernel installation failed! (/boot/kernel* not found)"
cleanup
exit 1
fi
fi
# Check if kernel installation was successful
KERNEL="$(ls -1 "${R}"/boot/firmware/kernel* | sort | tail -n 1)"
if [ -z "$KERNEL" ] ; then
echo "error: kernel installation failed! (/boot/kernel* not found)"
cleanup
exit 1
fi