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

[PATCH] Point out how to switch runsystem in README.Debian [hurd].



And how about just moving it to initscripts README.Debian file?
I'd personally prefer cleaner upgrade messages and also don't think switching
back to GNU runsystem is so useful in general.
In case rewording/rephrasing welcome.


>8------------------------------------------------------8<
---
 debian/changelog                         |  8 +++++---
 debian/initscripts.postinst              |  7 -------
 debian/src/initscripts/doc/README.Debian | 18 ++++++++++++++++++
 3 files changed, 23 insertions(+), 10 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 94b7a94..14b1dfa 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,8 +1,10 @@
 sysvinit (2.88dsf-54) UNRELEASED; urgency=medium
 
-  * sysv-rc:
-    - [hurd] Fix hurd-console addition to inittab if inittab already existent.
-    - [hurd] Replace /libexec/getty in commented out lines as well.
+  * sysv-rc [hurd]:
+    - Fix hurd-console addition to inittab if inittab already existent.
+    - Replace /libexec/getty in commented out lines as well.
+  * initscripts [hurd]:
+    - Point out how to switch back to GNU runsystem in README.Debian.
 
  -- Gabriele Giacone <1o5g4r8o@gmail.com>  Mon, 07 Apr 2014 12:59:55 +0200
 
diff --git a/debian/initscripts.postinst b/debian/initscripts.postinst
index 7288c2c..d37f84e 100755
--- a/debian/initscripts.postinst
+++ b/debian/initscripts.postinst
@@ -242,14 +242,7 @@ then
 
 	if [ "$current" != "$new" ]; then
 	    echo "Switching from runsystem.$current to runsystem.$new."
-	    echo
 	fi
-
-	echo "You can use update-alternatives --config runsystem to select"
-	echo "the runsystem to use."
-	echo
-	echo "You must use halt-hurd or reboot-hurd to halt or reboot the"
-	echo "system whenever you change the runsystem."
 fi
 
 # Ensure we have a random seed on first boot.
diff --git a/debian/src/initscripts/doc/README.Debian b/debian/src/initscripts/doc/README.Debian
index ef14e63..b80ac87 100644
--- a/debian/src/initscripts/doc/README.Debian
+++ b/debian/src/initscripts/doc/README.Debian
@@ -50,3 +50,21 @@ will complain with this message during boot:
   Will now mount local filesystems:mount: /sys already mounted or /sys busy
   mount: according to mtab, sysfs is already mounted on /sys
     failed
+
+
+runsystem [hurd-any]
+--------------------
+
+Since hurd 0.5.git20140320-1, system switched from GNU runsystem script
+to sysvinit one by default.  Switch between runsystem scripts can still
+be done by issuing
+
+  # update-alternatives --config runsystem
+
+followed by
+
+  # halt-hurd
+or
+  # reboot-hurd
+
+to halt or reboot the system.
-- 
1.9.1


Reply to: