All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/6] systemd cleanup & package split
@ 2016-02-08 10:09 Maciej Borzecki
  2016-02-08 10:09 ` [PATCH 1/6] systemd: move bash completion into separate package Maciej Borzecki
                   ` (5 more replies)
  0 siblings, 6 replies; 16+ messages in thread
From: Maciej Borzecki @ 2016-02-08 10:09 UTC (permalink / raw)
  To: openembedded-core, Enrico Jorns, Roy Li, Khem Raj,
	Christopher Larson, Ross Burton
  Cc: Maciek Borzecki

A couple of patches that allow us to build a slimmer variant of
systemd. As of now, systemd is configured with most options enabled. The
resulting package is large, roughly 14359kB (for x86 builds) and is a
bit of concern if one is trying to build smaller images. This patch
series attempts to address the problem, while trying to remain
compatible with current way of doing things.

After applying patches, leaving default PACKAGECONFIG flags and skipping
systemd-extra-utils, the systemd takes ~4000kB in the image. It should
be possible to strip it even further just leaving systemd and systemctl
in the target image, but figuring out which units are necessary yet
failed to work might be a bit of a pain.

The first patch follows the approach of zsh completion files and splits
bash completion handlers into separate package - systemd-bash.

The second patch is just a small cosmetic change that allows for cleaner
diffs when adding/removing packages.

The third patch adds a number of PACKAGECONFIG flags to systemd. By
default only a handful of these is enabled, plus a couple of features
that stem from DISTRO or MACHINE features. Flag 'binfmt' is enabled as
we're building systemd-binfmt package. Flag 'sysusers' is enabled as
well, as this enabled cleanups in patch 4. Flag 'randomseed' is enabled
as it just made sense to have systemd-random-seed run during
boot. Almost every --enable-feature configure switch has been exposed as
PACKAGECONFIG flag, so it's fairly easy to opt-in for particular
functionality if needed.

Patch 4 uses sysusers for creating users. The user accounts created by
systemd are by default slightly more restricted than ones brought up by
useradd class. Namely the shell is set to /bin/nologin and no home
directory is created.

Patch 5 splits all/most of nonessential binaries into a separate
systemd-extra-utils package. The package is listed in RRECOMMENDS so
that it gets included by default in images. Binaries that get created as
a result of PACKAGECONFIG flags will be included in the main 'systemd'
package to avoid the effect when use has set a flag but the desired
binary is not in the target system.

Patch 6 removes chown on /var/lib/journal that may no longer be
necessary.

Maciej Borzecki (6):
  systemd: move bash completion into separate package
  systemd: realign packages list
  systemd: extend PACKAGECONFIG flags
  systemd: use sysusers for setting up required users/groups
  systemd: move some tools into systemd-extra-utils package
  systemd: remove unnecessary code

 meta/recipes-core/systemd/systemd_228.bb | 128 +++++++++++++++++++++++++++----
 1 file changed, 112 insertions(+), 16 deletions(-)

--
2.5.0



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

end of thread, other threads:[~2016-02-09 15:50 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-08 10:09 [PATCH 0/6] systemd cleanup & package split Maciej Borzecki
2016-02-08 10:09 ` [PATCH 1/6] systemd: move bash completion into separate package Maciej Borzecki
2016-02-08 10:20   ` Tanu Kaskinen
2016-02-08 10:33     ` Maciek Borzecki
2016-02-08 10:09 ` [PATCH 2/6] systemd: realign packages list Maciej Borzecki
2016-02-08 10:09 ` [PATCH 3/6] systemd: extend PACKAGECONFIG flags Maciej Borzecki
2016-02-08 10:21   ` Andreas Müller
2016-02-08 10:44     ` Maciek Borzecki
2016-02-08 11:07       ` Andreas Müller
2016-02-08 11:10         ` Maciek Borzecki
2016-02-08 10:09 ` [PATCH 4/6] systemd: use sysusers for setting up required users/groups Maciej Borzecki
2016-02-08 10:09 ` [PATCH 5/6] systemd: move some tools into systemd-extra-utils package Maciej Borzecki
2016-02-08 10:09 ` [PATCH 6/6] systemd: remove unnecessary code Maciej Borzecki
2016-02-09 14:56   ` Randy MacLeod
2016-02-09 15:19   ` Khem Raj
2016-02-09 15:50     ` Maciek Borzecki

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.