* [PATCH] openvswitch: do not use 'exit 1' to postpone to first boot
@ 2018-09-05 12:32 Hongxu Jia
2018-09-05 20:25 ` Bruce Ashfield
0 siblings, 1 reply; 2+ messages in thread
From: Hongxu Jia @ 2018-09-05 12:32 UTC (permalink / raw)
To: bruce.ashfield, meta-virtualization
Since `229f4e9 package.bbclass: add support for
pkg_postinst_ontarget()' applied in oe-core, use
pkg_postinst_ontarget to run postinst at first boot.
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
---
recipes-networking/openvswitch/openvswitch.inc | 13 ++-----------
1 file changed, 2 insertions(+), 11 deletions(-)
diff --git a/recipes-networking/openvswitch/openvswitch.inc b/recipes-networking/openvswitch/openvswitch.inc
index 70ac5bc..8aab739 100644
--- a/recipes-networking/openvswitch/openvswitch.inc
+++ b/recipes-networking/openvswitch/openvswitch.inc
@@ -134,22 +134,13 @@ do_install_append() {
cp -r ${S}/python/ovstest/ ${D}${libdir}/python${PYTHON_BASEVERSION}/site-packages/
}
-pkg_postinst_${PN}-pki () {
- # can't do this offline
- if [ "x$D" != "x" ]; then
- exit 1
- fi
+pkg_postinst_ontarget_${PN}-pki () {
if test ! -d $D/${datadir}/${PN}/pki; then
ovs-pki init --dir=$D/${datadir}/${PN}/pki
fi
}
-pkg_postinst_${PN}-testcontroller () {
- # can't do this offline
- if [ "x$D" != "x" ]; then
- exit 1
- fi
-
+pkg_postinst_ontarget_${PN}-testcontroller () {
if test ! -d $D/${datadir}/${PN}/pki; then
ovs-pki init --dir=$D/${datadir}/${PN}/pki
fi
--
2.8.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] openvswitch: do not use 'exit 1' to postpone to first boot
2018-09-05 12:32 [PATCH] openvswitch: do not use 'exit 1' to postpone to first boot Hongxu Jia
@ 2018-09-05 20:25 ` Bruce Ashfield
0 siblings, 0 replies; 2+ messages in thread
From: Bruce Ashfield @ 2018-09-05 20:25 UTC (permalink / raw)
To: Hongxu Jia; +Cc: meta-virtualization
merged
Bruce
On Wed, Sep 5, 2018 at 8:32 AM, Hongxu Jia <hongxu.jia@windriver.com> wrote:
> Since `229f4e9 package.bbclass: add support for
> pkg_postinst_ontarget()' applied in oe-core, use
> pkg_postinst_ontarget to run postinst at first boot.
>
> Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
> ---
> recipes-networking/openvswitch/openvswitch.inc | 13 ++-----------
> 1 file changed, 2 insertions(+), 11 deletions(-)
>
> diff --git a/recipes-networking/openvswitch/openvswitch.inc b/recipes-networking/openvswitch/openvswitch.inc
> index 70ac5bc..8aab739 100644
> --- a/recipes-networking/openvswitch/openvswitch.inc
> +++ b/recipes-networking/openvswitch/openvswitch.inc
> @@ -134,22 +134,13 @@ do_install_append() {
> cp -r ${S}/python/ovstest/ ${D}${libdir}/python${PYTHON_BASEVERSION}/site-packages/
> }
>
> -pkg_postinst_${PN}-pki () {
> - # can't do this offline
> - if [ "x$D" != "x" ]; then
> - exit 1
> - fi
> +pkg_postinst_ontarget_${PN}-pki () {
> if test ! -d $D/${datadir}/${PN}/pki; then
> ovs-pki init --dir=$D/${datadir}/${PN}/pki
> fi
> }
>
> -pkg_postinst_${PN}-testcontroller () {
> - # can't do this offline
> - if [ "x$D" != "x" ]; then
> - exit 1
> - fi
> -
> +pkg_postinst_ontarget_${PN}-testcontroller () {
> if test ! -d $D/${datadir}/${PN}/pki; then
> ovs-pki init --dir=$D/${datadir}/${PN}/pki
> fi
> --
> 2.8.1
>
--
"Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end"
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-09-05 20:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-05 12:32 [PATCH] openvswitch: do not use 'exit 1' to postpone to first boot Hongxu Jia
2018-09-05 20:25 ` Bruce Ashfield
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.