From 4d1aed483420fdb3d2cbcca4a5b646ad5426349c Mon Sep 17 00:00:00 2001 From: Mihai Prica Date: Fri, 26 Jul 2013 17:06:44 +0300 Subject: openvswitch: Ensure pki directory creation RPM doesn't guarantee the order in which postinstalls are ran. Added code to ensure the pki directory is initialized. Signed-off-by: Mihai Prica --- recipes-networking/openvswitch/openvswitch_1.10.0.bb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'recipes-networking/openvswitch') diff --git a/recipes-networking/openvswitch/openvswitch_1.10.0.bb b/recipes-networking/openvswitch/openvswitch_1.10.0.bb index fff597c1..4fb2670b 100644 --- a/recipes-networking/openvswitch/openvswitch_1.10.0.bb +++ b/recipes-networking/openvswitch/openvswitch_1.10.0.bb @@ -14,7 +14,7 @@ RDEPENDS_${PN}-pki = "${PN}" RDEPENDS_${PN}-brcompat = "${PN} ${PN}-switch" RRECOMMENDS_${PN} += "kernel-module-openvswitch" -PR = "r1" +PR = "r2" SRC_URI = "http://openvswitch.org/releases/openvswitch-${PV}.tar.gz \ file://openvswitch-switch \ @@ -91,6 +91,10 @@ pkg_postinst_${PN}-controller () { exit 1 fi + if test ! -d $D/${datadir}/${PN}/pki; then + ovs-pki init --dir=$D/${datadir}/${PN}/pki + fi + cd $D/${sysconfdir}/openvswitch-controller if ! test -e cacert.pem; then ln -s $D/${datadir}/${PN}/pki/switchca/cacert.pem cacert.pem -- cgit v1.2.3-54-g00ecf