Skip to content

Conversation

@geissonator
Copy link
Contributor

New yocto is getting more stringent on installation of templated service and targets.

Templated services are installed by bitbake recipes so there's no need to have the WantedBy/RequiredBy in those services.

Here's a summary of the error we get for packages which have templated services doing an install:

ERROR: obmc-phosphor-image-1.0-r0 do_rootfs: Postinstall scriptlets of
['<package>' 'inst returned 1, marking as unpacked only, configuration
required on target']
If the intention is to defer them to first boot,
then please place them into pkg_postinst_ontarget:${PN} ().
Deferring to first boot via 'exit 1' is no longer supported.

Tested:

  • Confirmed image builds with new yocto and services are still installed as expected

Change-Id: Ib20f56812381f8cdf48bdbbcbcd63de770486280

New yocto is getting more stringent on installation of templated service
and targets.

Templated services are installed by bitbake recipes so there's no
need to have the WantedBy/RequiredBy in those services.

Here's a summary of the error we get for packages which have templated
services doing an install:
```
ERROR: obmc-phosphor-image-1.0-r0 do_rootfs: Postinstall scriptlets of
['<package>' 'inst returned 1, marking as unpacked only, configuration
required on target']
If the intention is to defer them to first boot,
then please place them into pkg_postinst_ontarget:${PN} ().
Deferring to first boot via 'exit 1' is no longer supported.
```

Tested:
- Confirmed image builds with new yocto and services are still installed
  as expected

Change-Id: Ib20f56812381f8cdf48bdbbcbcd63de770486280
Signed-off-by: Andrew Geissler <[email protected]>
@geissonator
Copy link
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant