From a095dfcf7ac5b1e519813604fe34eeadc599f07e Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Fri, 20 Sep 2013 19:37:07 +0200 Subject: [PATCH] gen_initramfs: use /usr/bin/udevadm if /bin/udevadm is not available --- gen_initramfs.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gen_initramfs.sh b/gen_initramfs.sh index 75d4d53..c3b96b3 100755 --- a/gen_initramfs.sh +++ b/gen_initramfs.sh @@ -615,10 +615,12 @@ append_udev() { # systemd-207 dropped /sbin/udevd local udevd_bin=/sbin/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 "${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" cd "${TEMP}/initramfs-udev-temp/"