b374k
m1n1 1.01
Apache/2.2.15 (CentOS)
Linux obd60-6c49958d75-2q7cw 5.4.0-174-generic #193-Ubuntu SMP Thu Mar 7 14:29:28 UTC 2024 x86_64
uid=48(apache) gid=48(apache) groups=48(apache)
server ip : 172.67.192.52 | your ip : 10.244.126.0
safemode OFF
 >  / usr / share / dracut / modules.d / 90lvm /
Filename/usr/share/dracut/modules.d/90lvm/install
Size1.11 kb
Permissionrwxr-xr-x
Ownerapache
Create time23-Dec-2025 17:41
Last modified19-Jun-2018 21:14
Last accessed19-Jun-2018 21:14
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
#!/bin/bash
inst lvm

inst_rules "$moddir/64-lvm.rules" 64-lvm.rules

if [[ $hostonly ]] || [[ $lvmconf = "yes" ]]; then
if [ -f /etc/lvm/lvm.conf ]; then
for f in /etc/lvm/lvm.conf /etc/lvm/lvm_*.conf; do
[ -e "$f" ] || continue
inst "$f"
# FIXME: near-term hack to establish read-only locking;
# use command-line lvm.conf editor once it is available
[ -f "${initdir}/$f" ] && \
sed -i -e \
's/\(^[[:space:]]*\)locking_type[[:space:]]*=[[:space:]]*[[:digit:]]/\1locking_type = 4/' \
"${initdir}/$f"
done
fi
fi

inst_rules 11-dm-lvm.rules

inst "$moddir/lvm_scan.sh" /sbin/lvm_scan
inst_hook cmdline 30 "$moddir/parse-lvm.sh"

if ldd $(which lvm) 2>/dev/null | grep -q lib64; then
LIBDIR="/lib64"
else
LIBDIR="/lib"
fi

for i in $(ls /{usr,}/$LIBDIR/libdevmapper-event-lvm*.so 2>/dev/null); do
dracut_install $i
done

dracut_install -o thin_dump thin_restore thin_check thin_repair \
cache_dump cache_restore cache_check cache_repair \
era_check era_dump era_invalidate era_restore