glibc_post_upgrade: Explain why removing platform directories is needed

This commit is contained in:
Florian Weimer 2018-01-04 09:28:36 +01:00
parent d8e1573f9c
commit 95cc2e8d4c

View File

@ -73,6 +73,14 @@ main (void)
int i, j, fd;
off_t base;
ssize_t ret;
/* In order to support in-place upgrades, we must immediately remove
obsolete platform directories after installing a new glibc
version. RPM only deletes files removed by updates near the end
of the transaction. If we did not remove the obsolete platform
directories here, they would be preferred by the dynamic linker
during the execution of subsequent RPM scriptlets, likely
resulting in process startup failures. */
const char *remove_dirs[] =
{
#if defined (__i386__)