Commit Graph

2 Commits

Author SHA1 Message Date
Eugene Syromiatnikov 04d5905f0e update_ucode: cleanup dangling symlinks during update
Microcode is not supposed to be removed during updates,
so there are several possible code paths/situations when
it is possible that symlinks are not completely cleaned up;
as a result, when such a case occurs (for example, when
there is a microcode, that is not supposed to be OS-loadable
in the first place, added end then removed) a dangling symlinks
may appear during updates;  the most straightforward way to deal
with it, it seems, is to just treat the microcode directories
as being owned by the package (which they de-facto are) and simply
cleanup all the dangling symlinks during an update.

* update_ucode: Remove all the dangling symlinks at the end of common
microcode removal phase;  remove all the dangling symlinks in the
kernel-specific directories at the end of the update process.
* microcode_ctl.spec (Release): Bump to 2.
(%changelog): Add an entry.

Resolves: #2213022
Signed-off-by: Eugene Syromiatnikov <esyr@redhat.com>
2023-06-08 15:37:35 +02:00
Eugene Syromiatnikov 3e73f633e5 Import RHEL packaging
Sync with current RHEL 8.5 packaging.

Resolves: #1880064
Signed-off-by: Eugene Syromiatnikov <esyr@redhat.com>
2021-07-26 18:44:11 +02:00