3 # $Id: lvm2udev,v 1.1.1.1 2008/12/22 00:18:58 haad 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