void-packages/srcpkgs/lvm2/files/lvm2.initramfs-local-top
Juan RP 350dc28872 lvm2: improve the rc service and initramfs-tools hook, bumprev.
--HG--
extra : convert_revision : 6cbf65693e39b4841ddd2e4b68454e69c8dac1b9
2010-03-01 10:22:56 +01:00

28 lines
499 B
Bash

#!/bin/sh
PREREQ="mdadm mdrun multipath"
prereqs()
{
echo "$PREREQ"
}
case $1 in
# get pre-requisites
prereqs)
prereqs
exit 0
;;
esac
[ ! -e /sbin/lvm ] && exit 0
[ ! -e /dev/urandom ] && mknod /dev/urandom c 1 9
modprobe -q dm-mod >/dev/null 2>&1
if [ -e /sys/class/misc/device-mapper ]; then
echo "Scanning for Logical Volumes..."
/sbin/lvm vgscan --ignorelockingfailure
echo "Activating Logical Volumes..."
/sbin/lvm vgchange --ignoremonitoring --ignorelockingfailure -ay
fi
exit $?