31 lines
865 B
Plaintext
31 lines
865 B
Plaintext
|
# rcS - runlevel compatibility
|
||
|
#
|
||
|
# This task runs the old sysv-rc startup scripts.
|
||
|
|
||
|
start on stopped virtualfs
|
||
|
|
||
|
#stop on runlevel
|
||
|
|
||
|
description "Initialize Locical Volume Manager (LVM)"
|
||
|
author "Harald Kueller <harald.kueller@compuextreme.de>"
|
||
|
|
||
|
console logged
|
||
|
|
||
|
# Note: there can be no previous runlevel here, if we have one it's bad
|
||
|
# information (we enter rc1 not rcS for maintenance). Run /etc/init.d/rc
|
||
|
# without information so that it defaults to previous=N runlevel=S.
|
||
|
console output
|
||
|
script
|
||
|
source /etc/init.d/functions
|
||
|
if [ -f /sbin/vgscan ]; then
|
||
|
echo -n "Scanning Volumes"
|
||
|
/sbin/vgscan >/dev/null 2>&1
|
||
|
evaluate_retval
|
||
|
for i in `vgdisplay|grep "VG Name"|awk '{print $3}'`; do
|
||
|
echo -n "Activating Volume $i"
|
||
|
vgchange -a y $i
|
||
|
evaluate_retval
|
||
|
done
|
||
|
fi
|
||
|
end script
|