summaryrefslogtreecommitdiff
path: root/debian/local
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2011-01-03 02:01:10 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2011-01-03 02:01:10 +0100
commit0d310d45977052900aad97de8cd645b0522196d3 (patch)
treea8d12812792be0d4f9c384abbacb289fd2536585 /debian/local
parent57ccd67c623300186a5cc63cb1ed301997404f25 (diff)
Require 200MiB memory for d-i
Don't let d-i start if there is less then 200MiB memory.
Diffstat (limited to 'debian/local')
-rwxr-xr-xdebian/local/runsystem11
1 files changed, 11 insertions, 0 deletions
diff --git a/debian/local/runsystem b/debian/local/runsystem
index 87003531..ea014477 100755
--- a/debian/local/runsystem
+++ b/debian/local/runsystem
@@ -8,6 +8,17 @@ export PATH
/hurd/mach-defpager
+mem=`vmstat-hurd --size -k`
+if [ "$mem" -lt 190000 ]
+then
+ echo "You only have ${mem}KiB memory."
+ echo "Debian GNU/Hurd installation currently needs at least 200MiB memory, sorry."
+ while true
+ do
+ sleep 60
+ done
+fi
+
# Get all kernel parameters that can be exported as environment variables
envvars="$(echo $* | tr ' ' '\012' | egrep '^[-_/[:alnum:]]+=.*$')"