From 50da765d7ffd150cb6d3baf37dcdb956cd2b6c3a Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Sat, 11 Jan 2014 14:38:48 +0100 Subject: [PATCH] fifteen: update diskspace and number of files. --- config/rootfiles/core/76/update.sh | 4 ++-- src/install+setup/install/main.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/rootfiles/core/76/update.sh b/config/rootfiles/core/76/update.sh index 12d6b1c0f..5967212f8 100644 --- a/config/rootfiles/core/76/update.sh +++ b/config/rootfiles/core/76/update.sh @@ -118,7 +118,7 @@ tar cJvf /var/ipfire/backup/core-upgrade$core_$KVER.tar.xz \ # Check diskspace on root ROOTSPACE=`df / -Pk | sed "s| * | |g" | cut -d" " -f4 | tail -n 1` -if [ $ROOTSPACE -lt 70000 ]; then +if [ $ROOTSPACE -lt 100000 ]; then /usr/bin/logger -p syslog.emerg -t ipfire \ "core-update-$core: ERROR cannot update because not enough free space on root." exit 2 @@ -327,7 +327,7 @@ rm -rf /opt/pakfire/db/*/meta-linux-pae if [ ! "$(grep "^flags.* pae " /proc/cpuinfo)" == "" ]; then ROOTSPACE=`df / -Pk | sed "s| * | |g" | cut -d" " -f4 | tail -n 1` BOOTSPACE=`df /boot -Pk | sed "s| * | |g" | cut -d" " -f4 | tail -n 1` - if [ $BOOTSPACE -lt 8000 -o $ROOTSPACE -lt 70000 ]; then + if [ $BOOTSPACE -lt 9000 -o $ROOTSPACE -lt 90000 ]; then /usr/bin/logger -p syslog.emerg -t ipfire \ "core-update-$core: WARNING not enough space for pae kernel." else diff --git a/src/install+setup/install/main.c b/src/install+setup/install/main.c index 8f78865d9..6bd2e2228 100644 --- a/src/install+setup/install/main.c +++ b/src/install+setup/install/main.c @@ -12,7 +12,7 @@ #include "install.h" #define _GNU_SOURCE -#define INST_FILECOUNT 14400 +#define INST_FILECOUNT 15000 #define UNATTENDED_CONF "/cdrom/boot/unattended.conf" #define LICENSE_FILE "/cdrom/COPYING" -- 2.39.2