From 447919da16bfeeb66d305c3a42c681410550f858 Mon Sep 17 00:00:00 2001 From: MickLesk Date: Sun, 12 Apr 2026 20:55:30 +0200 Subject: [PATCH] Alpine-Wakapi: Fix BusyBox df compatibility in container storage check --- misc/build.func | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/build.func b/misc/build.func index 4af0752dc..3b735055e 100644 --- a/misc/build.func +++ b/misc/build.func @@ -3214,8 +3214,8 @@ check_container_resources() { # - Warns if usage >80% and asks user confirmation before proceeding # ------------------------------------------------------------------------------ check_container_storage() { - total_size=$(df /boot --output=size | tail -n 1) - local used_size=$(df /boot --output=used | tail -n 1) + total_size=$(df -P /boot | awk 'NR==2 {print $2}') + local used_size=$(df -P /boot | awk 'NR==2 {print $3}') usage=$((100 * used_size / total_size)) if ((usage > 80)); then msg_warn "Storage is dangerously low (${usage}% used on /boot)"