From a344b7edcabc9126373358748fd664536c77a115 Mon Sep 17 00:00:00 2001 From: James Le Cuirot Date: Fri, 5 Jul 2024 15:05:53 +0100 Subject: [PATCH] Stop creating /usr/lib64/os-release compatibility symlink We currently put an os-release symlink in lib64, but we shouldn't assume that the architecture will even have a lib64 directory. I doubt this compatibility symlink was needed anyway. Gentoo doesn't have one, and applications are supposed to check /etc/os-release. I can find almost no reference to /usr/lib64/os-release anywhere, let alone in Flatcar. Signed-off-by: James Le Cuirot --- build_library/set_lsb_release | 4 ---- 1 file changed, 4 deletions(-) diff --git a/build_library/set_lsb_release b/build_library/set_lsb_release index 4681cb5eda..514bba7c2d 100755 --- a/build_library/set_lsb_release +++ b/build_library/set_lsb_release @@ -63,10 +63,6 @@ CPE_NAME="cpe:2.3:o:${OS_ID}-linux:${OS_ID}_linux:${FLATCAR_VERSION}:*:*:*:*:*:* EOF sudo ln -sf "../usr/lib/os-release" "${ROOT_FS_DIR}/etc/os-release" sudo ln -sf "../../lib/os-release" "${ROOT_FS_DIR}/usr/share/flatcar/os-release" -# Compat for split of lib64 into lib and lib64 -if [ ! -e "${ROOT_FS_DIR}/usr/lib64/os-release" ]; then - sudo ln -sf "../lib/os-release" "${ROOT_FS_DIR}/usr/lib64/os-release" -fi # Create the defaults for the coreos configuration files in the usr directory sudo_clobber "${ROOT_FS_DIR}/usr/share/flatcar/release" <