Bullseye bugfix: improved grep
This commit is contained in:
parent
3e7dd378ec
commit
89f63f45fb
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user