This commit is contained in:
committed by
Git OBS Bridge
parent
7b6ed3d331
commit
2754b8fdcd
19
boot.lvm
19
boot.lvm
@@ -7,7 +7,7 @@
|
||||
### BEGIN INIT INFO
|
||||
# Provides: boot.lvm
|
||||
# Required-Start: boot.device-mapper boot.udev boot.rootfsck
|
||||
# X-UnitedLinux-Should-Start: boot.multipath boot.md boot.scsidev boot.dmraid
|
||||
# Should-Start: boot.multipath boot.md boot.dmraid
|
||||
# Required-Stop:
|
||||
# Default-Start: B
|
||||
# Default-Stop:
|
||||
@@ -42,22 +42,12 @@ case "$1" in
|
||||
echo "Activating LVM volume groups..."
|
||||
/sbin/vgchange -a y $LVM_VGS_ACTIVATED_ON_BOOT
|
||||
|
||||
# currently unavailable with lvm2
|
||||
#if test -s /etc/pvpath.cfg -a -x /sbin/pvpathrestore; then
|
||||
# /sbin/pvpathrestore
|
||||
#fi
|
||||
rc_status -v -r
|
||||
fi
|
||||
;;
|
||||
stop)
|
||||
if test -d /etc/lvmtab.d -a -x /sbin/vgchange ; then
|
||||
if test -d /etc/lvm -a -x /sbin/vgchange ; then
|
||||
/sbin/vgchange -a n
|
||||
|
||||
# currently unavailable with lvm2
|
||||
#if test -s /etc/pvpath.cfg -a -x /sbin/pvpathsave; then
|
||||
# /sbin/pvpathsave
|
||||
#fi
|
||||
|
||||
fi
|
||||
rc_status -v
|
||||
;;
|
||||
@@ -65,8 +55,11 @@ case "$1" in
|
||||
rc_failed 4
|
||||
rc_status -v
|
||||
;;
|
||||
reload)
|
||||
$0 start
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|status}"
|
||||
echo "Usage: $0 {start|stop|status|reload}"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
Reference in New Issue
Block a user