diff --git a/kernel.spec b/kernel.spec index 6de57a7..7291a48 100644 --- a/kernel.spec +++ b/kernel.spec @@ -1487,14 +1487,16 @@ EOF %endif ### Create kernel Post script +# 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 +# that is created then will be non-functional. But when the user installs +# kernel-<...> package, that defunct initrd will be replaced with a working +# one here. cat > $kernel_files-post < /dev/null