Build initrd when all initrd modules have been installed

This commit is contained in:
Mikhail Novosyolov 2021-04-24 00:00:12 +03:00
parent f5e803e6f9
commit 61dda572ef

View file

@ -23,7 +23,7 @@
%define sublevel 32
# Release number. Increase this before a rebuild.
%define rpmrel 2
%define rpmrel 3
%define fullrpmrel %{rpmrel}
%define rpmtag %{disttag}
@ -459,7 +459,7 @@ operating system. The kernel handles the basic functions
of the operating system: memory allocation, process allocation, device
input and output, etc. This is a general-purpose kernel.
%post -n kernel-%{flavour}-%{buildrel}
%posttrans -n kernel-%{flavour}-%{buildrel}
# We always regenerate initrd here, even if it already exists. This may
# happen if kernel-<...>-devel is installed first, triggers rebuild of
# DKMS modules and some of these request remaking of initrd. The initrd