From 3ff5df873f41c8390519024db7c3dd0c51f51bdc Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 28 Mar 2026 08:39:32 +0000 Subject: [PATCH 2/3] fix: enable Alpine community repo in ha_automatic_packages.sh before apk installs Agent-Logs-Url: https://github.com/alexbelgium/hassio-addons/sessions/0e7fb54a-7428-4f42-ad0e-8176f2fc3787 Co-authored-by: alexbelgium <44178713+alexbelgium@users.noreply.github.com> --- .templates/ha_automatic_packages.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.templates/ha_automatic_packages.sh b/.templates/ha_automatic_packages.sh index 852f02c73..23c3d2fd1 100755 --- a/.templates/ha_automatic_packages.sh +++ b/.templates/ha_automatic_packages.sh @@ -183,6 +183,12 @@ done [ "$VERBOSE" = true ] && echo "installing packages $PACKAGES" if [ "$PACKMANAGER" = "apt" ]; then apt-get update > /dev/null; fi if [ "$PACKMANAGER" = "pacman" ]; then pacman -Sy > /dev/null; fi +if [ "$PACKMANAGER" = "apk" ] && [ -f /etc/apk/repositories ] && ! grep -q "community" /etc/apk/repositories; then + ALPINE_VER=$(cat /etc/alpine-release 2>/dev/null | cut -d. -f1,2) + if [ -n "$ALPINE_VER" ]; then + echo "https://dl-cdn.alpinelinux.org/alpine/v${ALPINE_VER}/community" >> /etc/apk/repositories + fi +fi # Install apps one by one to allow failures # shellcheck disable=SC2086 From f99d40b1973a5e670078534f7de8c84cc36ebc59 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 28 Mar 2026 08:39:54 +0000 Subject: [PATCH 3/3] fix: run apk update after enabling Alpine community repo Agent-Logs-Url: https://github.com/alexbelgium/hassio-addons/sessions/0e7fb54a-7428-4f42-ad0e-8176f2fc3787 Co-authored-by: alexbelgium <44178713+alexbelgium@users.noreply.github.com> --- .templates/ha_automatic_packages.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/.templates/ha_automatic_packages.sh b/.templates/ha_automatic_packages.sh index 23c3d2fd1..94f33e728 100755 --- a/.templates/ha_automatic_packages.sh +++ b/.templates/ha_automatic_packages.sh @@ -187,6 +187,7 @@ if [ "$PACKMANAGER" = "apk" ] && [ -f /etc/apk/repositories ] && ! grep -q "comm ALPINE_VER=$(cat /etc/alpine-release 2>/dev/null | cut -d. -f1,2) if [ -n "$ALPINE_VER" ]; then echo "https://dl-cdn.alpinelinux.org/alpine/v${ALPINE_VER}/community" >> /etc/apk/repositories + apk update > /dev/null fi fi