[Bug 2363206] Review Request: dracut-sshd - OpenSSH dracut initramfs integration

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.redhat.com/show_bug.cgi?id=2363206



--- Comment #10 from Georg Sauthoff <fedora@xxxxxxxx> ---
Regarding ghost files - I'm not sure how useful it is to mark such an optional
file as ghost.

My expectation is that 99.9 % of users are fine with the default sshd_config
from /usr/lib/dracut/modules.d/46sshd/.

I don't find anything about ghost macro usage in the fedora packaging guide.

Also, the disadvantage I see with ghost is the interaction with `rpm --verify`
and `rpm -f` then,
i.e. users are easily misled that a present ghost file was installed by a
package.


/etc/dracut-sshd/sshd_config is an optional overwrite that shadows
/usr/lib/dracut/modules.d/46sshd/sshd_config, if present.

This overwrite mechanism is similar to what is used in systemd and other
software packages.

Looking at my system I see a few ghost files for systemd config files (such as
/etc/systemd/journald.conf) but not for every service.


I understand that the touched file isn't really installed, because of the ghost
marking.
But I'm not sure about the directory.
If it's unconditionally created I see that as suboptimal, because, again, I
expect most people to leave it empty then.

---

FWIW, regarding configuration under /usr - the relevant section from the
packaging guide:

> Don’t use %config or %config(noreplace) under /usr. /usr is deemed to not contain configuration files in Fedora.

https://docs.fedoraproject.org/en-US/packaging-guidelines/#_configuration_files


[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite Conditions]     [KDE Users]

  Powered by Linux