From 6d49f1e4700b8237fb898eebf3428ae8e94ef02a Mon Sep 17 00:00:00 2001 From: Thierry N Date: Mon, 19 Oct 2009 09:02:00 +0200 Subject: Ajout de lvm2#2.02.53-1 --- base/lvm2/lvmnodes | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100755 base/lvm2/lvmnodes (limited to 'base/lvm2/lvmnodes') 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 -- cgit v1.2.3-54-g00ecf