mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-02-03 20:03:25 +01:00
fix(install): fix Debian 13 LXC template root ownership bug (#11277)
The Debian 13 LXC template has a bug where / is owned by nobody instead of root. This causes systemd-tmpfiles to fail with exit code 73 during package installation (e.g. authelia). Fix by checking and correcting / ownership at container setup.
This commit is contained in:
committed by
GitHub
parent
f939170d47
commit
49c1eef653
@@ -79,6 +79,12 @@ EOF
|
||||
# ------------------------------------------------------------------------------
|
||||
setting_up_container() {
|
||||
msg_info "Setting up Container OS"
|
||||
|
||||
# Fix Debian 13 LXC template bug where / is owned by nobody
|
||||
if [[ "$(stat -c '%U' /)" != "root" ]]; then
|
||||
chown root:root /
|
||||
fi
|
||||
|
||||
for ((i = RETRY_NUM; i > 0; i--)); do
|
||||
if [ "$(hostname -I)" != "" ]; then
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user