Skip to content
Snippets Groups Projects
Commit f89d2045 authored by Simon McVittie's avatar Simon McVittie Committed by Sjoerd Simons
Browse files

sanity-check: assert that /etc/os-release NAME is correct


NAME was fixed (in T133). Unfortunately, ID wasn't fixed (opens: T2117).

Signed-off-by: default avatarSimon McVittie <simon.mcvittie@collabora.co.uk>
Differential Revision: https://phabricator.apertis.org/D3650
parent f2b514bc
No related branches found
No related tags found
No related merge requests found
...@@ -46,10 +46,10 @@ test -S /run/user/$(id -u user)/bus || fail user-bus-is-up ...@@ -46,10 +46,10 @@ test -S /run/user/$(id -u user)/bus || fail user-bus-is-up
test -e /etc/debian_version || fail has-debian_version test -e /etc/debian_version || fail has-debian_version
cat /etc/os-release || fail os-release cat /etc/os-release || fail os-release
# These two should really test for Apertis, but that would currently grep -E '^NAME=("?)Apertis\1$' /etc/os-release || fail os-release-name
# fail - see https://phabricator.apertis.org/T133 - so they also # This should really test for apertis, but that would currently
# fail - see https://phabricator.apertis.org/T2117 - so they also
# allow Ubuntu # allow Ubuntu
grep -E '^NAME=("?)(Apertis|Ubuntu)\1$' /etc/os-release || fail os-release-name
grep -E '^ID=("?)(apertis|ubuntu)\1$' /etc/os-release || fail os-release-id grep -E '^ID=("?)(apertis|ubuntu)\1$' /etc/os-release || fail os-release-id
if ! test -S /run/user/$(id -u user)/wayland-0; then if ! test -S /run/user/$(id -u user)/wayland-0; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment