3
# $Id: lvm2udev,v 1.1 2004/06/07 16:20:05 agk Exp $
5
# simple startup script to create lvm2 devices if /dev is a mountpoint, there
6
# are active dm- devices, and an executable /sbin/vgscan.
8
# this script is licensed under GPLv2.
9
# See http://www.gnu.org/licenses/gpl.html
13
# is /dev a mountpoint?
17
# check to see if there are active dm entries under /sys
18
ls /sys/block/dm-*/dev 1>/dev/null 2>&1
21
# mknodes if conditions are right
22
if [ $DEVMNTPOINT -eq 0 -a $ACTIVEDMDEVS -eq 0 -a -x /sbin/vgscan ]; then
23
/sbin/vgscan --mknodes --ignorelockingfailure