Pin srt to a tested version; support only Pop!_OS 26.04 and later
srt is pinned to 0.0.83, the version the smoketest passed with. A computer with another version sees the agents item as to do in configure, which installs the pinned one. Move the pin only after smoketest/run 50 80 passes. The installer and configure stop on Pop!_OS (or Ubuntu) older than 26.04. The smoketest builds on Ubuntu 26.04, with checks that 24.04 is refused. 26.04's own AppArmor profile lets bubblewrap make user namespaces, so the connector's profile for it, and the code that offered to add it, are gone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+6
-1
@@ -73,8 +73,13 @@ preflight() {
|
||||
[ "$(uname -s)" = Linux ] || fail "This is for Pop!_OS. On a Mac, use Federated Connector for macOS."
|
||||
[ "$(id -u)" -ne 0 ] || fail "Run this as yourself, not as root. It asks for your password when it needs it."
|
||||
command -v apt-get > /dev/null || fail "This is for Pop!_OS (or another Ubuntu-based system); this one has no apt."
|
||||
case "$(os_field ID)" in
|
||||
pop|ubuntu)
|
||||
[ "$(printf '%s\n' 26.04 "$(os_field VERSION_ID)" | sort -V | head -n 1)" = 26.04 ] \
|
||||
|| fail "This needs Pop!_OS 26.04 or later; this computer runs $(os_field PRETTY_NAME). Upgrade first." ;;
|
||||
esac
|
||||
if [ "$(os_field ID)" != pop ]; then
|
||||
echo "${YELLOW}This is made for Pop!_OS with COSMIC; this computer runs $(os_field PRETTY_NAME)."
|
||||
echo "${YELLOW}This is made for Pop!_OS 26.04 or later with COSMIC; this computer runs $(os_field PRETTY_NAME)."
|
||||
echo "Most of it works on other Ubuntu-based systems too.$RESET"
|
||||
fi
|
||||
if ! id -Gn | tr ' ' '\n' | grep -qxE 'sudo|admin'; then
|
||||
|
||||
Reference in New Issue
Block a user