From 1aaf4bb6f9a51359ee915273c8c56ca025fda074 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 16 Feb 2026 03:43:41 +0000 Subject: [PATCH] fix: resolve container build failures from systemd and setcap calls Add --no-pre-uninstall flag to fw-fanctrl install.sh to skip the systemctl is-active check that fails in container builds where systemd is not running as PID 1. Make the sunshine setcap call conditional on the binary existing, preventing build failure when the sunshine binary is not at the expected path. https://claude.ai/code/session_01B6ebup4Dd3tPBgVGhqJHWt --- Containerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Containerfile b/Containerfile index af127e4f15..7af1afbfac 100644 --- a/Containerfile +++ b/Containerfile @@ -253,10 +253,10 @@ RUN --mount=type=cache,dst=/var/cache \ chmod +x /usr/bin/framework_tool && \ git clone --depth 1 https://github.com/TamtamHero/fw-fanctrl.git /tmp/fw-fanctrl && \ pip install --prefix=/usr build && \ - cd /tmp/fw-fanctrl && ./install.sh --no-ectool --no-post-install --prefix-dir /usr && cd / && \ + cd /tmp/fw-fanctrl && ./install.sh --no-ectool --no-pre-uninstall --no-post-install --prefix-dir /usr && cd / && \ rm -rf /tmp/fw-fanctrl && \ sed -i 's|uupd|& --disable-module-distrobox|' /usr/lib/systemd/system/uupd.service && \ - setcap 'cap_sys_admin+p' $(readlink -f /usr/bin/sunshine) && \ + { SUNSHINE_BIN="$(readlink -f /usr/bin/sunshine 2>/dev/null)"; [ -f "$SUNSHINE_BIN" ] && setcap 'cap_sys_admin+p' "$SUNSHINE_BIN" || true; } && \ : "Use sunshine-kms.service instead to workaround upstream issues with BETA" && \ sed -i 's|Exec=/usr/bin/env systemctl start --u sunshine|Exec=/usr/bin/env systemctl start --u sunshine-kms|' /usr/share/applications/dev.lizardbyte.app.Sunshine.desktop && \ dnf5 -y --setopt=install_weak_deps=False install \