From c645bac12b753d9b8d95d61cff9b828ccbe3d391 Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Sun, 8 Jul 2018 18:11:58 +0200 Subject: [PATCH] core121: add diskspace check for /boot Signed-off-by: Arne Fitzenreiter --- config/rootfiles/core/121/update.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/config/rootfiles/core/121/update.sh b/config/rootfiles/core/121/update.sh index 18019c1d79..bee8fd24f0 100644 --- a/config/rootfiles/core/121/update.sh +++ b/config/rootfiles/core/121/update.sh @@ -59,6 +59,13 @@ if [ $ROOTSPACE -lt 220000 ]; then exit 2 fi +BOOTSPACE=`df /boot -Pk | sed "s| * | |g" | cut -d" " -f4 | tail -n 1` + +if [ $BOOTSPACE -lt 22000 ]; then + exit_with_error "ERROR cannot update because not enough free space on /boot." 3 + exit 3 +fi + # Stop services # Extract files -- 2.39.5