All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] systemd: add packageconfigs for storage optimisation
@ 2026-10-23 10:51 Tan Siewert
  2026-10-23 10:51 ` [PATCH 1/4] systemd: add ukify packageconfig Tan Siewert
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Tan Siewert @ 2026-10-23 10:51 UTC (permalink / raw)
  To: openembedded-core; +Cc: Sai Sireesha T, Patrick Williams, Tan Siewert

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>
---
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.bb | 22 ++++++++++++++++------
 1 file changed, 16 insertions(+), 6 deletions(-)
---
base-commit: ae5cafacec8e99c5a27fa5b3b378eefc595910ef
change-id: 20261021-systemd-optimisations-dae99d91e807

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


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2026-10-28 14:55 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-23 10:51 [PATCH 0/4] systemd: add packageconfigs for storage optimisation Tan Siewert
2026-10-23 10:51 ` [PATCH 1/4] systemd: add ukify packageconfig Tan Siewert
2026-10-23 11:34   ` Paul Barker
2026-10-28 14:48     ` Tan Siewert
2026-10-23 10:51 ` [PATCH 2/4] systemd: add sysinstall packageconfig Tan Siewert
2026-10-23 10:51 ` [PATCH 3/4] systemd: add hwdb packageconfig Tan Siewert
2026-10-23 10:51 ` [PATCH 4/4] systemd: add fdisk packageconfig Tan Siewert
2026-10-23 20:00 ` [PATCH 0/4] systemd: add packageconfigs for storage optimisation Tirumala Pudi, Sai Sireesha
2026-10-28 14:50   ` Tan Siewert

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.