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:
@@ -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 () {
|
||||
|
||||
Reference in New Issue
Block a user