[Vserver] [PATCH] scripts/vserver-build.fai: simple check for patched FAI

From: Sam Vilain <sam_at_vilain.net>
Date: Wed 27 Sep 2006 - 00:40:37 BST
Message-ID: <4519BA75.30508@vilain.net>

We did not explicitly check that the user is trying to install with a
patched FAI. Whilst we do not attempt full detection, a simple check,
and a URL, will go a long way.

---
 vserver-build.fai |    7 +++++++
 1 file changed, 7 insertions(+)
--- scripts/vserver-build.fai.orig      2006-09-27 11:34:15.000000000 +1200
+++ scripts/vserver-build.fai   2006-09-27 11:37:08.000000000 +1200
@@ -76,6 +76,13 @@
 echo "FAI_DIR     is $FAI_DIR"
 FAI_ROOT=/tmp/target
 
+if ! grep -qw VIRTUAL $FAI_NFSROOT/usr/sbin/fai
+then
+    echo "*** Looks like you don't have the patched FAI."
+    echo "*** get it from
svn://svn.debian.org/svn/fai/people/mugwump/vserver"
+    exit 1
+fi
+
 # setup a new filesystem namespace
 set -e
 #[ -d $FAI_NFSROOT/var/log/fai ] || mkdir $FAI_NFSROOT/var/log/fai
_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
Received on Wed Sep 27 00:41:29 2006
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Wed 27 Sep 2006 - 00:41:36 BST by hypermail 2.1.8