[systemd-devel] How to override generators on debian (v215)?
Martin Pitt
martin.pitt at ubuntu.com
Thu Aug 18 05:48:20 UTC 2016
Hello nusenu,
nusenu [2016-08-17 16:02 +0000]:
> according to the official documentation from upstream systemd [1] it is
> possible to override a package generator by placing a custom generator
> (with the same name) into /etc/system/system-generator.
FWIW, this is a bad place -- binaries don't belong into /etc/ and
shouldn't be considered "configuration", this should rather go into
/usr/local/lib/systemd/system-generators (which is also supported).
But, this is tangential..
> Is there another workaround that one could apply?
You can remove the executable bit of the shipped generator:
dpkg-statoverride --update --add root root 644 /lib/systemd/system-generators/systemd-getty-generator
dpkg-statoverride instead of chmod will ensure that the next update of
the package that ships it will not set it back. Then just put your
generator into /lib/systemd/system-generators/ with a different name.
Martin
--
Martin Pitt | http://www.piware.de
Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20160818/3822a8df/attachment.sig>
More information about the systemd-devel
mailing list