mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-21 13:41:20 +02:00
build_library: move os-release to new location for systemd 215
This commit is contained in:
parent
4673c459e5
commit
0326b5f57f
@ -40,7 +40,7 @@ sudo ln -sf "../usr/share/coreos/lsb-release" "${ROOT_FS_DIR}/etc/lsb-release"
|
||||
# Aaaannd for the new systemd world order
|
||||
# os-release provides a separate build-id field, so split it from version
|
||||
OS_ID=$(tr '[:upper:]' '[:lower:]' <<<"$COREOS_VERSION_NAME")
|
||||
sudo_clobber "${ROOT_FS_DIR}/usr/share/coreos/os-release" <<EOF
|
||||
sudo_clobber "${ROOT_FS_DIR}/usr/lib/os-release" <<EOF
|
||||
NAME=$COREOS_VERSION_NAME
|
||||
ID=$OS_ID
|
||||
VERSION=$COREOS_VERSION_STRING
|
||||
@ -51,7 +51,8 @@ ANSI_COLOR="1;32"
|
||||
HOME_URL="https://coreos.com/"
|
||||
BUG_REPORT_URL="https://github.com/coreos/bugs/issues"
|
||||
EOF
|
||||
sudo ln -sf "../usr/share/coreos/os-release" "${ROOT_FS_DIR}/etc/os-release"
|
||||
sudo ln -sf "../usr/lib/os-release" "${ROOT_FS_DIR}/etc/os-release"
|
||||
sudo ln -sf "../../lib/os-release" "${ROOT_FS_DIR}/usr/share/coreos/os-release"
|
||||
|
||||
# Create the defaults for the coreos configuration files in the usr directory
|
||||
sudo_clobber "${ROOT_FS_DIR}/usr/share/coreos/release" <<EOF
|
||||
|
Loading…
x
Reference in New Issue
Block a user