Skip to content

Fix mask, preset, enable and restore /etc/machine-id in stateful images

Alex Kiernan openembedded-core 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 0 repliesNew
  2. v11 patch 7 repliesSuperseded

Changes in v2 from the cover letter

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

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3systemd: Default to non-stateless imagesmeta/classes/image.bbclass meta/recipes-core/systemd/systemd-systemctl/systemctl+13 -50 replies
2/3systemd-systemctl: Restore support for enable commandmeta/recipes-core/systemd/systemd-systemctl/systemctl+102 -770 replies
3/3systemd: Restore mask and preset targets, fix instance creationmeta/classes/systemd.bbclass+28 -90 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

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

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(-)
Signature · 1 line
2.17.1