mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
19 lines
601 B
Text
19 lines
601 B
Text
|
# vim:set ft=sh:
|
||
|
run_hook ()
|
||
|
{
|
||
|
/sbin/modprobe -q dm-mod >/dev/null 2>&1
|
||
|
if [ -e "/sys/class/misc/device-mapper" ]; then
|
||
|
read dev_t < /sys/class/misc/device-mapper/dev
|
||
|
if [ ! -e "/dev/mapper/control" ]; then
|
||
|
/bin/mknod "/dev/mapper/control" c $(/bin/replace "${dev_t}" ':')
|
||
|
fi
|
||
|
|
||
|
[ "${quiet}" = "y" ] && LVMQUIET=">/dev/null"
|
||
|
|
||
|
msg "Scanning logical volumes..."
|
||
|
eval /bin/lvm vgscan --ignorelockingfailure $LVMQUIET
|
||
|
msg "Activating logical volumes..."
|
||
|
eval /bin/lvm vgchange --ignorelockingfailure -ay $LVMQUIET
|
||
|
fi
|
||
|
}
|