diff options
author | Kevin Hao <kexin.hao@windriver.com> | 2018-10-22 19:58:38 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-10-25 14:53:44 +0100 |
commit | 654d57985a3652fc39f3e0f46df64cee2f7007db (patch) | |
tree | 52a43086aafb73d65b12a6837efef6745a12fcdf | |
parent | 6aa369153b97218bb11433c86a38d509a83bf4b4 (diff) | |
download | poky-654d57985a3652fc39f3e0f46df64cee2f7007db.tar.gz |
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.
(From OE-Core rev: 352b3f0b07370d8df7d6ae13c0bac0697f7751ba)
Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-core/udev/udev-extraconf/mount.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-core/udev/udev-extraconf/mount.sh b/meta/recipes-core/udev/udev-extraconf/mount.sh index 067d4e2a16..34ef98a6a8 100644 --- a/meta/recipes-core/udev/udev-extraconf/mount.sh +++ b/meta/recipes-core/udev/udev-extraconf/mount.sh | |||
@@ -4,7 +4,7 @@ | |||
4 | # | 4 | # |
5 | # Attempt to mount any added block devices and umount any removed devices | 5 | # Attempt to mount any added block devices and umount any removed devices |
6 | 6 | ||
7 | BASE_INIT="`readlink "@base_sbindir@/init"`" | 7 | BASE_INIT="`readlink -f "@base_sbindir@/init"`" |
8 | INIT_SYSTEMD="@systemd_unitdir@/systemd" | 8 | INIT_SYSTEMD="@systemd_unitdir@/systemd" |
9 | 9 | ||
10 | if [ "x$BASE_INIT" = "x$INIT_SYSTEMD" ];then | 10 | if [ "x$BASE_INIT" = "x$INIT_SYSTEMD" ];then |