From: Arne Fitzenreiter Date: Sun, 8 Jul 2018 16:11:58 +0000 (+0200) Subject: core121: add diskspace check for /boot X-Git-Tag: v2.21-core122~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c645bac12b753d9b8d95d61cff9b828ccbe3d391;p=ipfire-2.x.git core121: add diskspace check for /boot Signed-off-by: Arne Fitzenreiter --- 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