diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2019-09-21 10:42:55 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2019-09-21 10:42:59 +0200 |
commit | 208a3352d9da2a7defa73ce07c39322251d823d6 (patch) | |
tree | 27757bee37fa9e8befb26f7d07a9cb0330c3ec0c | |
parent | b0da94af7f1516cc277d5baa006167b00c47e9d0 (diff) | |
download | ptxdist-208a3352d9da2a7defa73ce07c39322251d823d6.tar.gz ptxdist-208a3352d9da2a7defa73ce07c39322251d823d6.tar.xz |
systemd: don't install ConditionNeedsUpdate= services
These services could simply be ignored in the past with a read-only
rootfs, because they do not run if the corresponding directory is
read-only.
With the /var overlayfs the situation has changed a bit. Some of the run at
every boot and do basically nothing. So just remove them from the system.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r-- | rules/systemd.make | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/rules/systemd.make b/rules/systemd.make index e68b527f7..e2aba72f9 100644 --- a/rules/systemd.make +++ b/rules/systemd.make @@ -199,6 +199,10 @@ endif @rm -v $(SYSTEMD_PKGDIR)/usr/lib/systemd/system/multi-user.target.wants/systemd-ask-password-wall.path @rm -v $(SYSTEMD_PKGDIR)/usr/lib/systemd/system/sysinit.target.wants/systemd-ask-password-console.path +# # no ConditionNeedsUpdate= services + @grep -Rl '^ConditionNeedsUpdate=' $(SYSTEMD_PKGDIR)/usr/lib/systemd/system | \ + xargs rm -v + # # don't touch /etc and /home @rm -v $(SYSTEMD_PKGDIR)/usr/lib/tmpfiles.d/etc.conf @rm -v $(SYSTEMD_PKGDIR)/usr/lib/tmpfiles.d/home.conf |