mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-10 09:24:37 +08:00
18 lines
592 B
Plaintext
18 lines
592 B
Plaintext
|
# vim:set ft=sh:
|
||
|
run_hook ()
|
||
|
{
|
||
|
/sbin/modprobe -q dm-mod >/dev/null 2>&1
|
||
|
if [ -e "/sys/class/misc/device-mapper" ]; then
|
||
|
if [ ! -e "/dev/mapper/control" ]; then
|
||
|
/bin/mknod "/dev/mapper/control" c $(cat /sys/class/misc/device-mapper/dev | sed 's|:| |')
|
||
|
fi
|
||
|
|
||
|
[ "${quiet}" = "y" ] && LVMQUIET=">/dev/null"
|
||
|
|
||
|
msg "Scanning logical volumes..."
|
||
|
eval /sbin/lvm vgscan --ignorelockingfailure $LVMQUIET
|
||
|
msg "Activating logical volumes..."
|
||
|
eval /sbin/lvm vgchange --ignorelockingfailure --ignoremonitoring -ay $LVMQUIET
|
||
|
fi
|
||
|
}
|