]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
systemctl-native: Rewrite in Python supporting preset-all and mask
authorAlex Kiernan <alex.kiernan@gmail.com>
Thu, 2 May 2019 21:09:43 +0000 (22:09 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 2 May 2019 21:20:24 +0000 (22:20 +0100)
commit86f5a2383692ac1ab01dce534c1a5c5f32ec4b35
tree21a9934fa6fe22c23b458881dfb228c33a698a39
parent154abbc3296eded11d2bbe3e102470b6986d42cd
systemctl-native: Rewrite in Python supporting preset-all and mask

Rewrite systemctl-native in Python so that extending/testing it is
easier.

Now that the systemd class sets up service presets instead of actively
enabling services, the 'enable' and 'disable' subcommands for systemctl
are not actually used anywhere.  As such, we can remove these to make
sure that nobody inadvertently introduces new uses of them.

This implementation covers `preset-all` and `mask` which are the only
options used in the current code, but should be readily extensible to
other commands.

We use `preset-all` at image construction time to populate the symlinks
used by systemd.

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/systemd/systemd-systemctl/systemctl