From f38dedf5897e2cc059e48132f7d87a20873faf57 Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Thu, 27 Feb 2014 13:55:01 +0100 Subject: [PATCH] gen_initramfs.sh, initrd.defaults: systemd-210 moved udevd to another path --- defaults/initrd.defaults | 1 + gen_initramfs.sh | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/defaults/initrd.defaults b/defaults/initrd.defaults index ba1e3a9..1df3f97 100755 --- a/defaults/initrd.defaults +++ b/defaults/initrd.defaults @@ -57,6 +57,7 @@ KSUFF=".ko" # systemd-207 dropped /sbin/udevd UDEVD="/sbin/udevd" [ ! -e "${UDEVD}" ] && UDEVD="/usr/lib/systemd/systemd-udevd" +[ ! -e "${UDEVD}" ] && UDEVD="/lib/systemd/systemd-udevd" MDEVD="/sbin/mdev" INITRD_SPLASH="/etc/initrd.splash" diff --git a/gen_initramfs.sh b/gen_initramfs.sh index 08dd8b3..fcc1056 100755 --- a/gen_initramfs.sh +++ b/gen_initramfs.sh @@ -637,6 +637,10 @@ append_udev() { # systemd-207 dropped /sbin/udevd local udevd_bin=/sbin/udevd [ ! -e "${udevd_bin}" ] && udevd_bin=/usr/lib/systemd/systemd-udevd + # systemd-210, moved udevd to another location + [ ! -e "${udevd_bin}" ] && udevd_bin=/lib/systemd/systemd-udevd + [ ! -e "${udevd_bin}" ] && gen_die "cannot find udevd" + local udevadm_bin=/bin/udevadm [ ! -e "${udevadm_bin}" ] && udevadm_bin=/usr/bin/udevadm