diff --git a/rootfiles.conf b/rootfiles.conf index c0ba135..d4da612 100644 --- a/rootfiles.conf +++ b/rootfiles.conf @@ -1,2 +1,6 @@ # create initial /root directories shell content -C+ /root/ 644 root root - /usr/share/rootfiles/ +C /root/.bash_logout 644 root root - /usr/share/rootfiles/.bash_logout +C /root/.bash_profile 644 root root - /usr/share/rootfiles/.bash_profile +C /root/.bashrc 644 root root - /usr/share/rootfiles/.bashrc +C /root/.cshrc 644 root root - /usr/share/rootfiles/.cshrc +C /root/.tcshrc 644 root root - /usr/share/rootfiles/.tcshrc diff --git a/rootfiles.spec b/rootfiles.spec index aa9cc77..499b7f7 100644 --- a/rootfiles.spec +++ b/rootfiles.spec @@ -1,7 +1,7 @@ Summary: The basic required files for the root user's directory Name: rootfiles Version: 8.1 -Release: 32%{?dist} +Release: 33%{?dist} License: Public Domain # This is a Red Hat maintained package which is specific to @@ -39,7 +39,10 @@ done %posttrans if [ $1 -eq 0 ] ; then #copy recursively the content, but do not overwrite the original files provided by rootfiles package - cp -ndr --preserve=ownership,timestamps /etc/skel/. %{ROOTFILES_DIR}/ || : + # NOTE: This has been broken by the conversion to tmpfiles. I see only one way to make it + # work: to synthetize a tmpfiles entry for each of these additional files/dirs. That seems like + # a lot of effort to continue supporting a feature for which there's likely not a high demand... + # cp -ndr --preserve=ownership,timestamps /etc/skel/. %{ROOTFILES_DIR}/ || : fi %files @@ -53,6 +56,9 @@ fi %ghost /root/.tcshrc %changelog +* Thu Jan 30 2025 David Tardon - 8.1-33 +- Fix tmpfiles rules (RHEL-58760) + * Tue Jan 28 2025 David Tardon - 8.1-32 - Use tmpfiles.d to create initial /root directory (RHEL-58760)