From: Kevin Hao Date: Mon, 22 Oct 2018 11:58:38 +0000 (+0800) Subject: udev-extraconf: Use the canonical file name of systemd X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~16336 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=352b3f0b07370d8df7d6ae13c0bac0697f7751ba;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git udev-extraconf: Use the canonical file name of systemd The new version of systemd has changed the symbolic link between /sbin/init and /lib/systemd/systemd to relative. So the output of the command 'readlink /sbin/init' become: ../lib/systemd/systemd Then it causes the following check of "/lib/systemd/systemd" to return false. Fix this issue by using the canonical file name of the systemd. Signed-off-by: Kevin Hao Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-core/udev/udev-extraconf/mount.sh b/meta/recipes-core/udev/udev-extraconf/mount.sh index 067d4e2a16f..34ef98a6a88 100644 --- a/meta/recipes-core/udev/udev-extraconf/mount.sh +++ b/meta/recipes-core/udev/udev-extraconf/mount.sh @@ -4,7 +4,7 @@ # # Attempt to mount any added block devices and umount any removed devices -BASE_INIT="`readlink "@base_sbindir@/init"`" +BASE_INIT="`readlink -f "@base_sbindir@/init"`" INIT_SYSTEMD="@systemd_unitdir@/systemd" if [ "x$BASE_INIT" = "x$INIT_SYSTEMD" ];then