Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Tan Siewert <tan.siewert@9elements.com>
To: openembedded-core@lists.openembedded.org
Cc: Sai Sireesha T <saisireesha.t@windriver.com>,
	 Tan Siewert <tan.siewert@9elements.com>
Subject: [PATCH v2 0/4] systemd: add packageconfigs for storage optimisation
Date: Mon, 23 Nov 2026 20:22:40 +0100	[thread overview]
Message-ID: <20261123-systemd-optimisations-v2-0-0ecd5965985c@9elements.com> (raw)

While investigating the storage usage in OpenBMC I noticed that several
features are enabled by default because their meson options default to
true or because they use .allowed() instead of .enabled() for the
validation. This pollutes the storage which is expensive on some
platforms (there are platforms that only have ~20 MiB for rofs).

This series adds packageconfigs for the features ukify, sysinstall, hwdb
and fdisk.

ukify was enabled by default but only works on EFI systems. On non-EFI
builds it will be disabled by default, but enabled by default when the
efi DISTRO_FEATURE is set.

sysinstall is a neat feature that makes installation guidance easier,
but for a lot of embedded systems it is just a waste of storage. It's
not enabled by default as it has runtime dependencies on systemd-repart
which weren't checked before. Enabling it by default would mean we'd
have to enable OpenSSL and repart which does not seem viable to me.

For hwdb, it might be useful for systems that see PCI/USB/HID devices or
for some laptops, but who needs ThinkPad keymaps on an ARM1176 SoC?

fdisk is recommended by libsystemd-shared, and disabling it drops
util-linux-libfdisk. This is only required for sysupdate, repart and
homed.

With all the changes I was able to free a significant amount of storage
again (the hwdb alone was ~9 MiB uncompressed).

I've tested my changes with qemux86-64 by building systemd with the
default configuration and with fdisk off, hwdb off, sysinstall on (with
and without repart), ukify on, and with the efi DISTRO_FEATURE (with and
without ukify), then checked the resulting packages, shipped binaries
and RRECOMMENDS.
Enabling repart or homed without fdisk fails at parse time as expected.

The testimage with default and hwdb-off + usbutils configuration booted
and passed the default tests.

Signed-off-by: Tan Siewert <tan.siewert@9elements.com>
---
Changes in v2:
- Rebase to blacksail and systemd 262.2 [Tan]
- Remove PACKAGE_BEFORE_PN condition for ukify [Paul]
- Link to v1: https://patch.msgid.link/20261023-systemd-optimisations-v1-0-0cce103e54df@9elements.com

---
Tan Siewert (4):
      systemd: add ukify packageconfig
      systemd: add sysinstall packageconfig
      systemd: add hwdb packageconfig
      systemd: add fdisk packageconfig

 meta/recipes-core/systemd/systemd_262.2.bb | 20 +++++++++++++++-----
 1 file changed, 15 insertions(+), 5 deletions(-)
---
base-commit: d612a1a307a0413aaed24df370627a1f110b0857
change-id: 20261021-systemd-optimisations-dae99d91e807

Best regards,
--  
Tan Siewert <tan.siewert@9elements.com>


             reply	other threads:[~2026-11-23 19:29 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-23 19:22 Tan Siewert [this message]
2026-11-23 19:22 ` [PATCH v2 1/4] systemd: add ukify packageconfig Tan Siewert
2026-11-23 19:22 ` [PATCH v2 2/4] systemd: add sysinstall packageconfig Tan Siewert
2026-11-23 19:22 ` [PATCH v2 3/4] systemd: add hwdb packageconfig Tan Siewert
2026-11-23 19:22 ` [PATCH v2 4/4] systemd: add fdisk packageconfig Tan Siewert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261123-systemd-optimisations-v2-0-0ecd5965985c@9elements.com \
    --to=tan.siewert@9elements.com \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=saisireesha.t@windriver.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox