From: Kevin Hao <kexin.hao@windriver.com>
To: <openembedded-core@lists.openembedded.org>
Subject: [PATCH 1/3] udev-extraconf: Use the canonical file name of systemd
Date: Mon, 22 Oct 2018 19:58:38 +0800 [thread overview]
Message-ID: <20181022115840.38029-2-kexin.hao@windriver.com> (raw)
In-Reply-To: <20181022115840.38029-1-kexin.hao@windriver.com>
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 <kexin.hao@windriver.com>
---
| 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--git a/meta/recipes-core/udev/udev-extraconf/mount.sh b/meta/recipes-core/udev/udev-extraconf/mount.sh
index 067d4e2a16fb..34ef98a6a882 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
--
2.14.4
next prev parent reply other threads:[~2018-10-22 12:07 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-22 11:58 [PATCH 0/3] udev-extraconf: Fix the automount malfunction when the systemd is used Kevin Hao
2018-10-22 11:58 ` Kevin Hao [this message]
2018-10-22 11:58 ` [PATCH 2/3] udev-extraconf: Fix the recursively dependency for the systemd-mount Kevin Hao
2018-10-22 11:58 ` [PATCH 3/3] udev-extraconf: Skip the entry in /etc/fstab when using " Kevin Hao
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20181022115840.38029-2-kexin.hao@windriver.com \
--to=kexin.hao@windriver.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox