mirror of
git://git.yoctoproject.org/meta-virtualization.git
synced 2025-07-19 20:59:41 +02:00
openvswitch: do not use 'exit 1' to postpone to first boot
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> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
This commit is contained in:
parent
cdb64ac0d1
commit
a352f4081b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user