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 <jlecuirot@microsoft.com>
This commit is contained in:
James Le Cuirot 2024-07-05 15:05:53 +01:00
parent 1033aa088c
commit a344b7edca
No known key found for this signature in database
GPG Key ID: 1226415D00DD3137

View File

@ -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" <<EOF