6 # device mapper modules
15 # from thin-provisioning-tools
16 add_binary
'pdata_tools'
17 for symlink
in cache_
{check
,dump
,metadata_size
,repair
,restore
} thin_
{check
,delta
,dump
,ls,metadata_size
,repair
,restore
,rmap
,trim
}; do
18 add_symlink
"/usr/bin/${symlink}" 'pdata_tools'
21 # udev rules and lvm configuration
26 '95-dm-notify.rules' \
27 '/usr/lib/initcpio/udev/11-dm-initramfs.rules'
29 # this udev rule is specific for systemd and non-systemd systems
30 if command -v add_systemd_unit
>/dev
/null
; then
31 add_udev_rule
'69-dm-lvm.rules'
33 add_udev_rule
'/usr/lib/initcpio/udev/69-dm-lvm.rules'
37 add_file
'/etc/lvm/lvm.conf'
38 sed -i -e 's/^[[:space:]#]*monitoring = [[:digit:]]\+\s*$/\tmonitoring = 0/' \
39 -e '/^$/d' -e '/^[[:space:]]*#/d' "${BUILDROOT}/etc/lvm/lvm.conf"
44 This hook enables LVM2 volumes in initramfs.