]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
core121: add diskspace check for /boot
authorArne Fitzenreiter <arne_f@ipfire.org>
Sun, 8 Jul 2018 16:11:58 +0000 (18:11 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Sun, 8 Jul 2018 16:11:58 +0000 (18:11 +0200)
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
config/rootfiles/core/121/update.sh

index 18019c1d7957bc475619157dd9289fdb78638edd..bee8fd24f04442695d2df3293dc90123163af1f1 100644 (file)
@@ -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