#64 Own the /etc/issue.d directory.
Merged 5 years ago by sgallagh. Opened 5 years ago by rfairley.
rpms/ rfairley/fedora-release rfairley-own-issue-d  into  master

file modified
+8 -1
@@ -14,7 +14,7 @@ 

  Summary:        Fedora release files

  Name:           fedora-release

  Version:        30

- Release:        0.19

+ Release:        0.20

  License:        MIT

  URL:            https://fedoraproject.org/

  
@@ -345,6 +345,9 @@ 

  echo "Kernel \r on an \m (\l)" >> %{buildroot}%{_prefix}/lib/issue.net

  ln -s ../usr/lib/issue.net %{buildroot}%{_sysconfdir}/issue.net

  

+ # Create /etc/issue.d

+ mkdir -p %{buildroot}%{_sysconfdir}/issue.d

+ 

  mkdir -p %{buildroot}%{_swidtagdir}

  

  # Create os-release files for the different editions
@@ -513,6 +516,7 @@ 

  %config(noreplace) %{_sysconfdir}/issue

  %attr(0644,root,root) %{_prefix}/lib/issue.net

  %config(noreplace) %{_sysconfdir}/issue.net

+ %dir %{_sysconfdir}/issue.d

  %attr(0644,root,root) %{_rpmconfigdir}/macros.d/macros.dist

  %dir %{_prefix}/lib/systemd/user-preset/

  %{_prefix}/lib/systemd/user-preset/90-default-user.preset
@@ -602,6 +606,9 @@ 

  

  

  %changelog

+ * Fri Jan 18 2019 Robert Fairley <rfairley@redhat.com> - 30-0.20

+ - Own /etc/issue.d directory.

+ 

  * Fri Dec 28 2018 Kevin Fenzi <kevin@scrye.com> - 30-0.19

  - Own /etc/swid directory.

  

Comes up in https://bugzilla.redhat.com/show_bug.cgi?id=1667174#c1,
where the package needs to use /etc/issue.d but no package currently
owns it.

Signed-off-by: Robert Fairley rfairley@redhat.com


Tested after building in COPR [0] and installing in Rawhide, where rpm -qf /etc/issue.d shows that fedora-release-common owns the directory.

Could this change be applied to Fedora 28 and 29 too? If so, I can open PRs for those.

Thanks!

[0] https://copr.fedorainfracloud.org/coprs/rfairley/add-motd-directories/build/848036/

Pull-Request has been merged by sgallagh

5 years ago