From: Koen Kooi <koen@dominion.thruhere.net>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [meta-oe][PATCH] open-iscsi : add new recipe
Date: Thu, 27 Nov 2014 10:14:51 +0100 [thread overview]
Message-ID: <m56q2b$8q2$1@ger.gmane.org> (raw)
In-Reply-To: <1416555843-1935-1-git-send-email-lixin.fnst@cn.fujitsu.com>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Li xin schreef op 21-11-14 08:44:
> Open-iSCSI project is a high performance, transport independent,
> multi-platform implementation of RFC3720.
>
> Signed-off-by: Li Xin <lixin.fnst@cn.fujitsu.com>
> +++ b/meta-oe/recipes-support/open-iscsi/files/open-iscsi.service @@ -0,0
> +1,18 @@ +[Unit] +Description=Open-iSCSI +Documentation=man:iscsid(8)
> man:iscsiadm(8) +After=network.target + +[Service] +Type=forking
> +PIDFile=/var/run/iscsid.pid +ExecStartPre=-/sbin/modprobe -q iscsi_tcp
> +ExecStartPre=-/sbin/modprobe -q ib_iser +ExecStart=/usr/sbin/iscsid -p
> /var/run/iscsid.pid +ExecStartPost=-/usr/sbin/iscsiadm -m node
> --loginall=automatic +ExecStopPost=/bin/sync
> +ExecStopPost=-/sbin/modprobe -r ib_iser +ExecStopPost=-/sbin/modprobe -r
> iscsi_tcp
Tons of hardcoded paths here
> + +[Install] +WantedBy=multi-user.target diff --git
> a/meta-oe/recipes-support/open-iscsi/open-iscsi_2.0-871.bb
> b/meta-oe/recipes-support/open-iscsi/open-iscsi_2.0-871.bb new file mode
> 100644 index 0000000..c8a87d3 --- /dev/null +++
> b/meta-oe/recipes-support/open-iscsi/open-iscsi_2.0-871.bb @@ -0,0 +1,35
> @@
> +SRC_URI = "http://www.open-iscsi.org/bits/${BP}.tar.gz"
[..]
> +SRC_URI += "file://iscsi_sysfs.c-add-include-files.patch \ +
> file://open-iscsi.service"
Please collapse these into a single SRC_URI
> +do_install_append () { + if
> ${@base_contains('DISTRO_FEATURES','systemd','true','false',d)}; then +
> install -d ${D}${systemd_unitdir}/system + install -m 0644
> ${WORKDIR}/open-iscsi.service ${D}${systemd_unitdir}/system/ + fi +}
> + +do_install () { + oe_runmake DESTDIR="${D}" install_user +}
Please collapse these into a single method
> +inherit
> ${@base_contains('VIRTUAL-RUNTIME_init_manager','systemd','systemd','',d)}
'inherit
>
systemd' should be safe enough with this check. And if you *really*
want to check, check for DISTRO_FEATURES.
Also, you're missing RRECOMMENDS for the kernel modules you try to modprobe
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
Comment: GPGTools - http://gpgtools.org
iD8DBQFUduuKMkyGM64RGpERAg9KAJ9lOrnIsfdO55QXXtOapwNqlA003wCgumTL
Cc+RUQRUvvzJKfupM/kauqc=
=MBC4
-----END PGP SIGNATURE-----
prev parent reply other threads:[~2014-11-27 9:15 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-21 7:44 [meta-oe][PATCH] open-iscsi : add new recipe Li xin
2014-11-21 14:03 ` Joe MacDonald
2014-11-27 8:03 ` [meta-networking][PATCH v2] open-iscsi : add recipe Li xin
2014-11-30 20:55 ` Joe MacDonald
2014-12-02 16:19 ` Koen Kooi
2014-12-02 17:41 ` Joe MacDonald
2014-11-24 11:32 ` [meta-oe][PATCH] open-iscsi : add new recipe Martin Jansa
2014-11-27 9:14 ` Koen Kooi [this message]
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='m56q2b$8q2$1@ger.gmane.org' \
--to=koen@dominion.thruhere.net \
--cc=openembedded-devel@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.