https://bugzilla.redhat.com/show_bug.cgi?id=2363206 --- Comment #11 from Neal Gompa <ngompa13@xxxxxxxxx> --- (In reply to Georg Sauthoff from comment #10) > 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. > The problem with not declaring it is that if it is uninstalled, it won't get cleaned up if a user does use the mechanism. That's why I asked for it to be handled. > --- > > 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 Those are all packaging bugs, there should be zero of those. It's effectively MUST NOT. -- You are receiving this mail because: You are always notified about changes to this product and component You are on the CC list for the bug. 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%23c11 -- _______________________________________________ package-review mailing list -- package-review@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to package-review-leave@xxxxxxxxxxxxxxxxxxxxxxx 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/package-review@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue