summaryrefslogtreecommitdiffstats
path: root/base/lvm2/lvmnodes
diff options
context:
space:
mode:
authorThierry N <thierryn1 at hispeed dot ch>2009-10-19 09:02:00 +0200
committerThierry N <thierryn1 at hispeed dot ch>2009-10-19 09:02:00 +0200
commit6d49f1e4700b8237fb898eebf3428ae8e94ef02a (patch)
tree4edbf16743a9d09e6b6d798fac6dd211bf0ff835 /base/lvm2/lvmnodes
parentef26e623ae90051cf49cf1414542f51e1c8ac55c (diff)
downloadnutyx-pakxe-6d49f1e4700b8237fb898eebf3428ae8e94ef02a.tar.gz
nutyx-pakxe-6d49f1e4700b8237fb898eebf3428ae8e94ef02a.tar.bz2
nutyx-pakxe-6d49f1e4700b8237fb898eebf3428ae8e94ef02a.tar.xz
nutyx-pakxe-6d49f1e4700b8237fb898eebf3428ae8e94ef02a.zip
Ajout de lvm2#2.02.53-1
Diffstat (limited to 'base/lvm2/lvmnodes')
-rwxr-xr-xbase/lvm2/lvmnodes39
1 files changed, 39 insertions, 0 deletions
diff --git a/base/lvm2/lvmnodes b/base/lvm2/lvmnodes
new file mode 100755
index 000000000..28ef51732
--- /dev/null
+++ b/base/lvm2/lvmnodes
@@ -0,0 +1,39 @@
+#!/bin/sh
+########################################################################
+# Begin $rc_base/init.d/lvmnodes
+#
+# Description : mknodes lvm
+#
+# Authors : guy_
+#
+# Version : 00.00
+#
+# Notes :
+#########################################################################
+
+. /etc/sysconfig/rc
+. ${rc_functions}
+
+boot_mesg "Mapping lvm drives..."
+case "${1}" in
+ start)
+ if [ -f /sbin/lvm ]; then
+ /sbin/lvm vgscan --ignorelockingfailure --mknodes
+ evaluate_retval
+ error_value=${?}
+ if [ "${error_value}" = 0 ]; then
+ echo_ok
+ exit 0
+ else
+ echo_failure
+ exit ${error_value}
+ fi
+ fi
+ ;;
+ *)
+ echo "Usage: ${0} {start}"
+ exit 1
+ ;;
+esac
+
+# End $rc_base/init.d/lvmnodes