diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2011-01-03 02:01:10 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2011-01-03 02:01:10 +0100 |
commit | 0d310d45977052900aad97de8cd645b0522196d3 (patch) | |
tree | a8d12812792be0d4f9c384abbacb289fd2536585 | |
parent | 57ccd67c623300186a5cc63cb1ed301997404f25 (diff) |
Require 200MiB memory for d-i
Don't let d-i start if there is less then 200MiB memory.
-rw-r--r-- | debian/changelog | 5 | ||||
-rwxr-xr-x | debian/local/runsystem | 11 |
2 files changed, 14 insertions, 2 deletions
diff --git a/debian/changelog b/debian/changelog index 3da9b80e..61dc8e30 100644 --- a/debian/changelog +++ b/debian/changelog @@ -5,8 +5,9 @@ hurd (20101029-1) UNRELEASED; urgency=low * debian/local/setup-translators: Add inet6 -> 26 symlink. * debian/local/finish-install.d/51hurd_config-target-network: Set pfinet translator on /servers/socket/26 too. - * debian/local/runsystem: Tell the user he needs to be patient while the - d-i templates get loaded. + * debian/local/runsystem: Don't let d-i start if there is less then 200MiB + memory. Tell the user he needs to be patient while the d-i templates get + loaded. -- Samuel Thibault <sthibault@debian.org> Fri, 29 Oct 2010 22:16:06 +0000 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:]]+=.*$')" |