gen_initramfs: use portage-utils to determine the lvm2 udev rules files

cleanup-cruft
Fabio Erculiani 12 years ago
parent 4d5e8e4e69
commit 35efca1c27

@ -319,14 +319,9 @@ append_lvm(){
mkdir -p "${TEMP}/initramfs-lvm-temp/etc/lvm/" mkdir -p "${TEMP}/initramfs-lvm-temp/etc/lvm/"
print_info 1 'LVM: Adding support (copying binaries from system)...' print_info 1 'LVM: Adding support (copying binaries from system)...'
udev_files=" udev_files=( $(qlist -e sys-fs/lvm2:0 | grep ^/lib/udev/rules.d) )
/lib/udev/rules.d/95-dm-notify.rules for f in "${udev_files[@]}"; do
/lib/udev/rules.d/13-dm-disk.rules [ -f "${f}" ] || gen_die "append_lvm: not a file: ${f}"
/lib/udev/rules.d/10-dm.rules
/lib/udev/rules.d/69-dm-lvm-metad.rules
/lib/udev/rules.d/11-dm-lvm.rules
"
for f in ${udev_files}; do
mkdir -p "${TEMP}/initramfs-lvm-temp"/$(dirname "${f}") || \ mkdir -p "${TEMP}/initramfs-lvm-temp"/$(dirname "${f}") || \
gen_die "cannot create rules.d directory" gen_die "cannot create rules.d directory"
cp "${f}" "${TEMP}/initramfs-lvm-temp/${f}" || \ cp "${f}" "${TEMP}/initramfs-lvm-temp/${f}" || \

Loading…
Cancel
Save