Warning!

Notice: the grml team is migrating from Mercurial to Git.
Please visit git.grml.org instead!

/etc/init.d/grml-reboot: check for nfsroot
authorMichael Prokop
Tue May 20 01:30:10 2008 +0200 (6 months ago)
changeset 147e4d911a7926d
manifeste4d911a7926d
parent 146b839b7de0f9e
child 148933b5cc72625
/etc/init.d/grml-reboot: check for nfsroot
debian/changelog
etc/init.d/grml-reboot
--- a/debian/changelog Mon Mar 10 19:18:33 2008 +0100
+++ b/debian/changelog Tue May 20 01:30:10 2008 +0200
@@ -1,3 +1,12 @@ grml-etc (1.1.3) unstable; urgency=low
+grml-etc (1.1.4) unstable; urgency=low
+
+ * /etc/init.d/grml-reboot: check for nfsroot (and keep check
+ for nfsdir as well to avoid breaking any existing scripts).
+ Thanks for reporting to Wolfgang Karall and thanks for the
+ test case to Jimmy.
+
+ -- Michael Prokop <mika@grml.org> Tue, 20 May 2008 01:28:51 +0200
+
grml-etc (1.1.3) unstable; urgency=low
* /etc/init.d/grml-reboot: put reboot + halt binaries to
--- a/etc/init.d/grml-reboot Mon Mar 10 19:18:33 2008 +0100
+++ b/etc/init.d/grml-reboot Tue May 20 01:30:10 2008 +0200
@@ -4,7 +4,7 @@
# Authors: grml-team (grml.org), (c) Klaus Knopper, (c) Michael Prokop <mika@grml.org>
# Bug-Reports: see http://grml.org/bugs/
# License: This file is licensed under the GPL v2.
-# Latest change: Mon Mär 10 19:04:15 CET 2008 [mika]
+# Latest change: Tue May 20 01:28:38 CEST 2008 [mika]
################################################################################
export PATH=/sbin:/bin:/usr/bin:/usr/sbin
@@ -26,7 +26,7 @@ grep -qe ' toram' -qe ' usb' -qe 'serial
# check for boot via NFS:
NFSBOOT=''
-if grep -q nfsdir /proc/cmdline ; then
+if grep -qe nfsroot -qe nfsdir /proc/cmdline ; then
NFSBOOT=1
fi