Keep coreutils in initrds in sync with installed ones

This commit is contained in:
Mikhail Novosyolov 2021-05-02 00:15:17 +03:00
parent 727bf897c6
commit 1dd449b5fc

View file

@ -10,7 +10,7 @@
Summary: The GNU core utilities: a set of tools commonly used in shell scripts
Name: coreutils
Version: 8.32
Release: 1
Release: 2
License: GPLv3+
Group: System/Base
Url: http://www.gnu.org/software/coreutils/
@ -250,6 +250,10 @@ done
# (tpg) compress these files
xz --text ChangeLog
# see comment in %%files
mkdir -p %{buildroot}/var/spool/initramfs-regen
touch %{buildroot}/var/spool/initramfs-regen/coreutils
%find_lang %{name}
%files -f %{name}.lang
@ -262,6 +266,12 @@ xz --text ChangeLog
%{_sbindir}/chroot
%dir %{_libexecdir}/coreutils
%{_libexecdir}/coreutils/libstdbuf.so
# This file triggers rebuilding initrds when coreutils package is updated
# to keep them on the host and inside initrds in sync,
# but!!! unlike other packages with /var/spool/initramfs-regen/*,
# NO dependency from rosa-kernel-tools here to avoid too complex
# dependency graph which must not be complex in coreutils
/var/spool/initramfs-regen/coreutils
%files doc
%doc ABOUT-NLS ChangeLog.xz NEWS THANKS TODO README