[meta-virtualization] [m-c-s][PATCH] python-*: fixup postinst scripts

Richard Purdie richard.purdie at linuxfoundation.org
Wed Nov 15 12:58:36 PST 2017


On Wed, 2017-11-15 at 12:59 -0500, Mark Asselstine wrote:
> Checking for "$D" and doing an "exit 1" now results in errors such
> as:
> 
> [log_check] warning: %post(keystone-cronjobs-...) scriptlet failed,
> exit status 2
> 
> during image creation. Instead of escaping the script for "level-1"
> (image creation postinst) we wrap the "level-2" (first boot) postinst
> in an if statement. This also ensure the scriptlet in
> indentity.bbclass is less prone to behaving differently based on the
> postinsts defined in the classes which inherit 'identity'.

I think this could mean the postinst doesn't get executed at all if
there isn't an exit 1, else how would it know to defer to first boot?

Cheers,

Richard


More information about the meta-virtualization mailing list