gen_initramfs: use /usr/bin/udevadm if /bin/udevadm is not available

master
Fabio Erculiani 11 years ago
parent 2a4f4b0901
commit a095dfcf7a

@ -615,10 +615,12 @@ append_udev() {
# systemd-207 dropped /sbin/udevd # systemd-207 dropped /sbin/udevd
local udevd_bin=/sbin/udevd local udevd_bin=/sbin/udevd
[ ! -e "${udevd_bin}" ] && udevd_bin=/usr/lib/systemd/systemd-udevd [ ! -e "${udevd_bin}" ] && udevd_bin=/usr/lib/systemd/systemd-udevd
local udevadm_bin=/bin/udevadm
[ ! -e "${udevd_bin}" ] && udevadm_bin=/usr/bin/udevadm
# Copy binaries # Copy binaries
copy_binaries "${TEMP}/initramfs-udev-temp" \ copy_binaries "${TEMP}/initramfs-udev-temp" \
"${udevd_bin}" /bin/udevadm "${udev_dir}/scsi_id" \ "${udevd_bin}" "${udevadm_bin}" "${udev_dir}/scsi_id" \
"${udev_dir}/ata_id" "${udev_dir}/mtd_probe" "${udev_dir}/ata_id" "${udev_dir}/mtd_probe"
cd "${TEMP}/initramfs-udev-temp/" cd "${TEMP}/initramfs-udev-temp/"

Loading…
Cancel
Save