[OE-core] [OE-Core][PATCH v2 0/3] Fix mask, preset, enable and restore /etc/machine-id in stateful images

Alex Kiernan alex.kiernan at gmail.com
Wed May 8 15:57:25 UTC 2019


The recent changes to systemd.bbclass broke support for
SYSTEMD_AUTO_ENABLE set to anything other than "enable" or "disable",
whereas there are existing users for "mask" and "preset".

In addition /etc/machine-id was not created as an empty file which
caused systemd to fail to do it's boot time update of it if the rootfs
was ro at boot.

Finally instance creation from templates whilst present was no longer
correctly exposed.

Changes in v2:
- use stateless-rootfs in IMAGE_FEATURES, not DISTRO_FEATURES
- restore support for enable command
- restore mask and preset targets, fix instance creation

Alex Kiernan (3):
  systemd: Default to non-stateless images
  systemd-systemctl: Restore support for enable command
  systemd: Restore mask and preset targets, fix instance creation

 meta/classes/image.bbclass                    |   9 +-
 meta/classes/systemd.bbclass                  |  37 +++-
 .../systemd/systemd-systemctl/systemctl       | 186 +++++++++++-------
 3 files changed, 142 insertions(+), 90 deletions(-)

-- 
2.17.1



More information about the Openembedded-core mailing list