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



--- Comment #10 from Georg Sauthoff <[email protected]> ---
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

From that I don't get whether this is a hard rule ('must') or merely a
recommendation.

FWIW, on my main workstation I have quite a few config-marked files under /usr
originating from the Fedora 41 repository:

rpm -qac | grep '^/usr' -c
39


-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are always notified about changes to this product and component
https://bugzilla.redhat.com/show_bug.cgi?id=2363206

Report this comment as SPAM: 
https://bugzilla.redhat.com/enter_bug.cgi?product=Bugzilla&format=report-spam&short_desc=Report%20of%20Bug%202363206%23c10

-- 
_______________________________________________
package-review mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to