[xen-tools-dev] [PATCH 01/17] Added new hooks to install udev. Needed for Debian Lenny with multiple partitions
Stéphane Jourdois
sjourdois at gmail.com
Sun Jul 25 14:12:33 CEST 2010
From: antoinebk <antoine.benkemoun at gmail.com>
---
hooks/debian/71-install-udev | 43 ++++++++++++++++++++++++++++++++++++++++++
1 files changed, 43 insertions(+), 0 deletions(-)
create mode 100755 hooks/debian/71-install-udev
diff --git a/hooks/debian/71-install-udev b/hooks/debian/71-install-udev
new file mode 100755
index 0000000..a88e1e2
--- /dev/null
+++ b/hooks/debian/71-install-udev
@@ -0,0 +1,43 @@
+#!/bin/sh
+#
+# This script installs udev upon the new system.
+#
+# udev is needed for Debian Lenny installs in order to be able to use
+# multiple partitions. It is also needed in Debian Etch in order to get
+# a shell in a SSH connection.
+#
+# This is mainly of copy/paste version of the ssh script by Steve.
+#
+# Antoine Benkemoun
+# --
+
+
+prefix=$1
+
+
+#
+# Source our common functions
+#
+if [ -e /usr/lib/xen-tools/common.sh ]; then
+ . /usr/lib/xen-tools/common.sh
+else
+ . ./hooks/common.sh
+fi
+
+
+#
+# Log our start
+#
+logMessage Script $0 starting
+
+
+#
+# Install ssh
+#
+installDebianPackage ${prefix} udev
+
+
+#
+# Log our finish
+#
+logMessage Script $0 finished
--
1.7.2
More information about the xen-tools-dev
mailing list