I had the specific file called out for symlinking during do_deploy. I can wildcard the policy file here and symlink to the first one if more than one policy file exists. Right now I don't know of a case where more than one policy is created, so it may never be an issue.
On Fri, Mar 25, 2016 at 9:26 PM, Chris Patterson <[email protected]> wrote: > On Thu, Mar 24, 2016 at 11:31 AM, Derek Straka <[email protected]> wrote: > > When using non-release versions, the policy files may have a different > name (xenpolicy-${PV}-unstable). Allow the policy file name to be > configured by the xen recipe. > > > > Signed-off-by: Derek Straka <[email protected]> > > --- > > recipes-extended/xen/xen.inc | 4 +++- > > 1 file changed, 3 insertions(+), 1 deletion(-) > > > > diff --git a/recipes-extended/xen/xen.inc b/recipes-extended/xen/xen.inc > > index bc5ff85..77740cf 100644 > > --- a/recipes-extended/xen/xen.inc > > +++ b/recipes-extended/xen/xen.inc > > @@ -17,6 +17,8 @@ PACKAGECONFIG ??= " \ > > ${@bb.utils.contains('XEN_TARGET_ARCH', 'x86_64', 'hvm', '', d)} \ > > " > > > > +FLASK_POLICY_FILE ?= "xenpolicy-${PV}" > > + > > PACKAGECONFIG[sdl] = "--enable-sdl,--disable-sdl,virtual/libsdl," > > PACKAGECONFIG[xsm] = > "--enable-xsmpolicy,--disable-xsmpolicy,checkpolicy-native," > > PACKAGECONFIG[systemd] = "--enable-systemd,--disable-systemd,systemd," > > @@ -343,7 +345,7 @@ FILES_${PN}-devd = "\ > > " > > > > FILES_${PN}-flask = "\ > > - /boot/xenpolicy-${PV} \ > > + /boot/${FLASK_POLICY_FILE} \ > > Looks fine to me, but could this just simply be a wildcard (i.e. > /boot/xenpolicy-*)? Is there a case where it would generate multiple > images and you would want to key off just one? >
-- _______________________________________________ meta-virtualization mailing list [email protected] https://lists.yoctoproject.org/listinfo/meta-virtualization
