diff options
-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:]]+=.*$')" |