Stop SSHFS hanging, and name the real reason Gatekeeper refuses an app

With macFUSE's FSKit extension off, sshfs waits forever and ignores TERM;
sftp_mount gives it 30 seconds, then stops it and says to turn macFUSE on.

On a Mac that allows only App Store apps, app_install said the download
"isn't notarized"; it now says the Mac only allows App Store apps, and where
to change that.

The vanilla image is like that and since macOS 15 only System Settings or
MDM can change it, so 70-apps checks the message and skips the installs
there. 85-sftp checks that add_sftp gives up while the extension is off.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
David Young
2026-11-11 15:01:03 -07:00
co-authored by Claude Opus 5.5
parent f2e6908dfd
commit eab26c0888
5 changed files with 74 additions and 11 deletions
+15
View File
@@ -26,6 +26,13 @@ wrong_team_refused() {
! install_pkg "$pkg"
}
# Tailscale's real package, turned down with the reason that applies
app_store_only_refused() {
local out
out="$(app_install tailscale 2>&1)" && return 1
echo "$out" | grep -q "only allows apps from the App Store"
}
team_of() {
codesign -dv "$(app_path "$1")" 2>&1 | sed -n 's/^TeamIdentifier=//p'
}
@@ -45,6 +52,14 @@ scenario() {
check "Gatekeeper turns down an app no one notarized" unnotarized_refused
check "install_pkg refuses a package signed by another Team ID" wrong_team_refused
# The vanilla image also allows only App Store apps, and since macOS 15
# only System Settings (a click) or MDM can change that
if ! developer_id_allowed; then
check "app_install says this Mac only allows App Store apps" app_store_only_refused
skip "Gatekeeper here only allows App Store apps, so Element, Nextcloud and Tailscale can't install (see README)"
return
fi
for app in element nextcloud tailscale; do
step "$app"
check "app_install $app (its Team ID and notarization check out)" app_install "$app"