gen_initramfs: do not hardcode udevdir but use pkg-config

Thanks to Martin Wegner for the original patch, I just cleaned it
up a bit and committed.
master
Fabio Erculiani 12 years ago
parent faf020424d
commit 9af1f8788c

@ -566,15 +566,16 @@ append_udev() {
rm -r "${TEMP}/initramfs-udev-temp" rm -r "${TEMP}/initramfs-udev-temp"
fi fi
local udev_dir="$(pkg-config --variable udevdir udev)"
udev_files=" udev_files="
/lib/udev/rules.d/50-udev-default.rules ${udev_dir}/rules.d/50-udev-default.rules
/lib/udev/rules.d/60-persistent-storage.rules ${udev_dir}/rules.d/60-persistent-storage.rules
/lib/udev/rules.d/80-drivers.rules ${udev_dir}/rules.d/80-drivers.rules
/etc/udev/udev.conf /etc/udev/udev.conf
" "
udev_maybe_files=" udev_maybe_files="
/lib/udev/rules.d/40-gentoo.rules ${udev_dir}/rules.d/40-gentoo.rules
/lib/udev/rules.d/99-systemd.rules ${udev_dir}/rules.d/99-systemd.rules
/etc/modprobe.d/blacklist.conf /etc/modprobe.d/blacklist.conf
" "
is_maybe=0 is_maybe=0
@ -597,8 +598,8 @@ append_udev() {
# Copy binaries # Copy binaries
copy_binaries "${TEMP}/initramfs-udev-temp" \ copy_binaries "${TEMP}/initramfs-udev-temp" \
/sbin/udevd /bin/udevadm /lib/udev/scsi_id \ /sbin/udevd /bin/udevadm "${udev_dir}/scsi_id" \
/lib/udev/ata_id /lib/udev/mtd_probe "${udev_dir}/ata_id" "${udev_dir}/mtd_probe"
cd "${TEMP}/initramfs-udev-temp/" cd "${TEMP}/initramfs-udev-temp/"
log_future_cpio_content log_future_cpio_content

Loading…
Cancel
Save