Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#41928 - [openvpn] Remove /etc/openvpn from the package

Attached to Project: Arch Linux
Opened by Yamakaky (Yamakaky) - Thursday, 11 September 2014, 07:37 GMT
Last edited by Thomas Bächler (brain0) - Monday, 15 September 2014, 17:20 GMT
Task Type Feature Request
Category Packages: Core
Status Closed
Assigned To Thomas Bächler (brain0)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Hi

The package openvpn contains the empty directory "/etc/openvpn". It should be removed and replaced by a tmpfiles.d file. This one create /etc/openvpn with 755 root:root if it doesn't exists :

/usr/lib/tmpfiles.d/openvpn.conf
################################
d /etc/openvpn
################################

openvpn.install should also include `systemd-tmpfiles --create openvpn.conf` in post_upgrade and post_install.
This task depends upon

Closed by  Thomas Bächler (brain0)
Monday, 15 September 2014, 17:20 GMT
Reason for closing:  Won't implement
Comment by Jan de Groot (JGC) - Thursday, 11 September 2014, 07:50 GMT
Why would you create a directory using tmpfiles.d? /etc/ is not on volatile storage.
Comment by Yamakaky (Yamakaky) - Thursday, 11 September 2014, 15:09 GMT
Sorry, I didn't explain the point.

http://0pointer.de/blog/projects/stateless.html
http://0pointer.net/blog/revisiting-how-we-put-together-linux-systems.html

tl;dr : putting all in /usr make it easier to share /usr between multiple hosts, and other things like a factory reset or a stateless system (/etc and /var volatiles). You just need /usr, and softwares use built-in defaults or defaults from /usr/share/factory/etc.


In fact, you can also remove /etc/openvpn/ and remove '--cd' from the service file. systemd resets pwd to / anyway, so --cd isn't really usefull with it.

Loading...