mirror of
git://git.yoctoproject.org/meta-virtualization.git
synced 2025-07-19 12:50:22 +02:00
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 <mihai.prica@intel.com>
This commit is contained in:
parent
faf6fc4885
commit
4d1aed4834
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user