commit-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SCM] Debian GNU Hurd packaging branch, master, updated. debian/20100926


From: Samuel Thibault
Subject: [SCM] Debian GNU Hurd packaging branch, master, updated. debian/20100926-1-14-g65532b3
Date: Mon, 03 Jan 2011 01:02:07 +0000

The following commit has been merged in the master branch:
commit 65532b3f161a23cca992b58f592dd614dbeb437d
Author: Samuel Thibault <address@hidden>
Date:   Mon Jan 3 02:01:10 2011 +0100

    Require 200MiB memory for d-i
    
    Don't let d-i start if there is less then 200MiB memory.

diff --git a/debian/changelog b/debian/changelog
index 3da9b80..61dc8e3 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 <address@hidden>  Fri, 29 Oct 2010 22:16:06 +0000
 
diff --git a/debian/local/runsystem b/debian/local/runsystem
index 8700353..ea01447 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:]]+=.*$')"
 

-- 
Debian GNU Hurd packaging



reply via email to

[Prev in Thread] Current Thread [Next in Thread]