mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 19:23:24 +02:00
fifteen: update diskspace and number of files.
This commit is contained in:
@@ -118,7 +118,7 @@ tar cJvf /var/ipfire/backup/core-upgrade$core_$KVER.tar.xz \
|
|||||||
# Check diskspace on root
|
# Check diskspace on root
|
||||||
ROOTSPACE=`df / -Pk | sed "s| * | |g" | cut -d" " -f4 | tail -n 1`
|
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 \
|
/usr/bin/logger -p syslog.emerg -t ipfire \
|
||||||
"core-update-$core: ERROR cannot update because not enough free space on root."
|
"core-update-$core: ERROR cannot update because not enough free space on root."
|
||||||
exit 2
|
exit 2
|
||||||
@@ -327,7 +327,7 @@ rm -rf /opt/pakfire/db/*/meta-linux-pae
|
|||||||
if [ ! "$(grep "^flags.* pae " /proc/cpuinfo)" == "" ]; then
|
if [ ! "$(grep "^flags.* pae " /proc/cpuinfo)" == "" ]; then
|
||||||
ROOTSPACE=`df / -Pk | sed "s| * | |g" | cut -d" " -f4 | tail -n 1`
|
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`
|
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 \
|
/usr/bin/logger -p syslog.emerg -t ipfire \
|
||||||
"core-update-$core: WARNING not enough space for pae kernel."
|
"core-update-$core: WARNING not enough space for pae kernel."
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
#include "install.h"
|
#include "install.h"
|
||||||
#define _GNU_SOURCE
|
#define _GNU_SOURCE
|
||||||
|
|
||||||
#define INST_FILECOUNT 14400
|
#define INST_FILECOUNT 15000
|
||||||
#define UNATTENDED_CONF "/cdrom/boot/unattended.conf"
|
#define UNATTENDED_CONF "/cdrom/boot/unattended.conf"
|
||||||
#define LICENSE_FILE "/cdrom/COPYING"
|
#define LICENSE_FILE "/cdrom/COPYING"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user