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/20090404


From: Samuel Thibault
Subject: [SCM] Debian GNU Hurd packaging branch, master, updated. debian/20090404.1-1-111-gc8527d4
Date: Tue, 17 Aug 2010 21:13:20 +0000

The following commit has been merged in the master branch:
commit c8527d40b3be45cbafcfdb419b3fa0ae4ddf2355
Author: Samuel Thibault <address@hidden>
Date:   Tue Aug 17 23:11:56 2010 +0200

    Export kernel parameters into environment

diff --git a/debian/changelog b/debian/changelog
index 0c7be49..212485b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -57,6 +57,8 @@ hurd (20100802-1) UNRELEASED; urgency=low
     hurd-i386-specific paths.
   * debian/hurd-dev.lintian-overrides: New overrides to allow libstore_* not
     being stripped (they wouldn't work, else).
+  * debian/local/runsystem: Export kernel parameters into environment, like
+    Linux does.
 
   [ Guillem Jover ]
   * Update make-new-tarball.sh to exclude git instead of CVS paths.
diff --git a/debian/local/runsystem b/debian/local/runsystem
index 3897f85..028ee2e 100755
--- a/debian/local/runsystem
+++ b/debian/local/runsystem
@@ -24,12 +24,21 @@ echo "Console started."
 # Set the console device used by /sbin/reopen-console
 echo /dev/tty1 >/var/run/console-device
 
-TERM=hurd
-export TERM
+export TERM=hurd
 
 # Preset the terminal type for /lib/debian-installer/detect-console
-TERM_TYPE=virtual
-export TERM_TYPE
+export TERM_TYPE=virtual
+
+# Export kernel parameters into environment, like Linux does.
+for i in $*
+do
+  var=$(echo $i | sed "s/=.*$//")
+  [ $var != $i ] || continue
+  [ $var != root ] || continue
+  val=$(echo $i | sed "s/^$var=//")
+  echo $var is $val
+  eval export $var=\$val
+done
 
 # Invoke init as linuxrc to work around pid != 1
 exec /bin/busybox linuxrc

-- 
Debian GNU Hurd packaging



reply via email to

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