Fixed Debian13 containers being unable to start after upgrade

* This was caused by outdated SystemD generator, this file will be updated when upgrading the container
This commit is contained in:
2026-01-11 17:46:41 +01:00
parent d51a694daa
commit 376b1dfa7c
3 changed files with 25 additions and 2 deletions

View File

@@ -78,6 +78,15 @@ if [[ "${DIST}" == *"debian"* ]]; then
* ) echo "Choose yes or no.";;
esac
done
if [ "${NewDebianVersion}" = "trixie" ]; then
curl -o /tmp/lxc.generator "https://raw.githubusercontent.com/lxc/distrobuilder/refs/heads/main/distrobuilder/lxc.generator"
# Check if the download was successful
if [ $? -ne 0 ]; then
echo "Downloading of lxc.generator from github failed. Exiting."
exit 1
fi
fi
elif [[ "${DIST}" == *"alpine"* ]]; then
#Ask the wanted Alpine version
DoAlpineReleaseUpdate=true