diff --git a/lib/distributions.sh b/lib/distributions.sh index 84303d9f68..bb4eb6ec2e 100644 --- a/lib/distributions.sh +++ b/lib/distributions.sh @@ -437,8 +437,8 @@ install_distribution_specific() # rc.local is not existing but one might need it install_rclocal # fix missing versioning - [[ $(grep -L "VERSION_ID" "${SDCARD}"/etc/os-release) ]] && echo 'VERSION_ID="11"' >> "${SDCARD}"/etc/os-release - [[ $(grep -L "VERSION" "${SDCARD}"/etc/os-release) ]] && echo 'VERSION="11 (bullseye)"' >> "${SDCARD}"/etc/os-release + [[ $(grep -L "VERSION_ID=" "${SDCARD}"/etc/os-release) ]] && echo 'VERSION_ID="11"' >> "${SDCARD}"/etc/os-release + [[ $(grep -L "VERSION=" "${SDCARD}"/etc/os-release) ]] && echo 'VERSION="11 (bullseye)"' >> "${SDCARD}"/etc/os-release # remove security updates repository since it does not exists yet sed '/security/ d' -i "${SDCARD}"/etc/apt/sources.list