From 6735a6d5c025231e3b18530b65f164867c88a5b4 Mon Sep 17 00:00:00 2001 From: Jeremi Piotrowski Date: Mon, 25 Jul 2022 17:33:08 +0200 Subject: [PATCH] prod_image_util: extract gcc libs to /usr/lib64 This made no difference back when lib was a symlink to lib64, but now that they are separate, libs belongs in /usr/lib64. This mostly doesn't show up because ldconfig configures the ld.so cache to include both locations, but when updating from an older release ld.so.cache is out of date. Unfortunately ld.so.cache does not get updated until after multipathd, which causes multipathd to dump core. This may also affect other packages that need access to libgcc early. See also: https://github.com/flatcar-linux/Flatcar/issues/809 --- build_library/prod_image_util.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build_library/prod_image_util.sh b/build_library/prod_image_util.sh index 935c9aaf49..cf928cbb7a 100755 --- a/build_library/prod_image_util.sh +++ b/build_library/prod_image_util.sh @@ -45,7 +45,7 @@ extract_prod_gcc() { # Instead we extract them to plain old /usr/lib qtbz2 -O -t "${pkg}" | \ sudo tar -C "${root_fs_dir}" -xj \ - --transform 's#/usr/lib/.*/#/usr/lib/#' \ + --transform 's#/usr/lib/.*/#/usr/lib64/#' \ --wildcards './usr/lib/gcc/*.so*' package_provided "${gcc}"