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

@@ -182,6 +182,7 @@ UpgradeRelease () {
DOREBOOT=true
# Post release cleanup if required
if [ "${NewDebianVersion}" = "trixie" ]; then PostDebianTrixieTasks; fi
if [ "${NewDebianVersion}" = "trixie" ]; then CTOnlyPostDebianTrixieTasks; fi
else
echo "Notice: Skiped, already up-to-date"
fi
@@ -260,13 +261,17 @@ PostDebianTrixieTasks () {
$INSTCALL -- apt modernize-sources -y
$INSTCALL -- rm -f /etc/apt/sources.list.bak
$INSTCALL -- rm -f /etc/apt/sources.list.d/*.bak
$INSTCALL -- systemctl mask tmp.mount
}
CTOnlyPostDebianTrixieTasks () {
# Disable unwanted mounts
$INSTCALL -- systemctl mask dev-mqueue.mount
$INSTCALL -- systemctl mask run-lock.mount
$INSTCALL -- systemctl mask sys-kernel-config.mount
$INSTCALL -- systemctl mask sys-kernel-debug.mount
$INSTCALL -- systemctl mask tmp.mount
$INSTCALL -- rm /etc/systemd/system-generators/lxc
pct push $CTID /tmp/lxc.generator /etc/systemd/system-generators/lxc --perms 755
}
PostAlpine323Tasks () {