aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoy Li <rongqing.li@windriver.com>2015-01-23 10:29:34 +0800
committerJoe MacDonald <joe_macdonald@mentor.com>2015-01-26 10:10:45 -0500
commitee3412f5023fab71a4744a4e1820e28d126b4eb4 (patch)
treebeaca1bbd580bfb7bf570f341c6b3ef72dbd823b
parent15fabdd15dce7efc965c12c2e8fefca10b4fc6e0 (diff)
downloadmeta-openembedded-contrib-ee3412f5023fab71a4744a4e1820e28d126b4eb4.tar.gz
meta-openembedded-contrib-ee3412f5023fab71a4744a4e1820e28d126b4eb4.tar.bz2
meta-openembedded-contrib-ee3412f5023fab71a4744a4e1820e28d126b4eb4.zip
iscsi-initiator-utils: fix the iscsid path in iscsid.conf
iscsid is installed into ${sbindir}, which is /usr/sbin, not /sbin/, so fix it in /etc/iscsi/iscsid.conf Signed-off-by: Roy Li <rongqing.li@windriver.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
-rw-r--r--meta-networking/recipes-daemons/iscsi-initiator-utils/iscsi-initiator-utils_2.0-873.bb2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta-networking/recipes-daemons/iscsi-initiator-utils/iscsi-initiator-utils_2.0-873.bb b/meta-networking/recipes-daemons/iscsi-initiator-utils/iscsi-initiator-utils_2.0-873.bb
index d48cf24eb6..f510ce51bf 100644
--- a/meta-networking/recipes-daemons/iscsi-initiator-utils/iscsi-initiator-utils_2.0-873.bb
+++ b/meta-networking/recipes-daemons/iscsi-initiator-utils/iscsi-initiator-utils_2.0-873.bb
@@ -69,6 +69,8 @@ do_install () {
install -p -m 644 ${S}/etc/iscsid.conf ${D}${sysconfdir}/iscsi
install -p -m 755 ${WORKDIR}/initd.debian ${D}${sysconfdir}/init.d/iscsid
+ sed -i -e "s:= /sbin/iscsid:= ${sbindir}/iscsid:" ${D}${sysconfdir}/iscsi/iscsid.conf
+
if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
install -d ${D}${sysconfdir}/tmpfiles.d
echo "d /run/${BPN}/lock - - - -" \