[systemd-devel] [PATCH] [RFC] Remove installation of symlinks in /etc

Colin Guthrie gmane at colin.guthr.ie
Tue Feb 12 13:12:39 PST 2013


'Twas brillig, and Umut Tezduyar at 12/02/13 12:00 did gyre and gimble:
> If I am not mistaken, moving "getty at tty1.service" and "remote-fs.target"
> to $systemunitdir will cause them to be shown as "disabled" on
> "systemctl status .unit" even though they are enabled. These unit files
> have "[Install]" sections and when there is "[Install]" section on them,
> systemd will look for a symbolic link in /etc to determine if the unit
> is enabled/disabled. 
> 
> If the mentioned unit files are moving to $systemunitdir, then their
> [Install] section needs to be removed as well so systemd can treat them
> as "static" unit files.

Should we not just drop them completely?

AFAIK, most distros don't ship those files but instead recreate them in
%post install scripts. Certainly, I've created distro-wide rpm-lint
rules that prevents any package from shipping any files inside
/etc/systemd/system/ (links or real units), and ditto for udev rules
etc. I'm very much trying to promote a tidy /etc these days :)

Col

-- 

Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/

Day Job:
  Tribalogic Limited http://www.tribalogic.net/
Open Source:
  Mageia Contributor http://www.mageia.org/
  PulseAudio Hacker http://www.pulseaudio.org/
  Trac Hacker http://trac.edgewall.org/



More information about the systemd-devel mailing list