If you are installing or updating Tailscale (from 1.104.1 to 1.104.4 in my case) on ZimaOS using the system extension script (chicohaager/zimaos-tailscale-sysext) and notice that the tailscaled.service keeps restarting without establishing a connection, you are not alone.
Here is a quick guide on why this happens and how to fix it before running ./install.sh.
The Problem
Checking systemctl status tailscaled.service shows the unit stuck in an activating (auto-restart) loop, failing at the ExecStartPre step:
Process: ExecStartPre=/bin/sh /usr/libexec/tailscale/appdata-guard.sh /DATA/AppData/tailscale (code=exited, status=1/FAILURE)
Running the guard script manually in verbose mode (sudo sh -x /usr/libexec/tailscale/appdata-guard.sh /DATA/AppData/tailscale) reveals the underlying error:
appdata-guard: /DATA/AppData ist kein echter Ordner
Why does this happen?
The appdata-guard.sh script is a safety check designed to ensure root permissions and directory security. It explicitly checks that /DATA/AppData is a plain, traditional directory:
[ -d “$parent” ] && [ ! -L “$parent” ] || refuse “$parent ist kein echter Ordner”
Because ZimaOS mounts /DATA or /DATA/AppData via overlays or symlinks, the [ ! -L “$parent” ] condition triggers a false positive, refusing to start the service even when permissions are perfectly fine.
Since /usr on ZimaOS is a read-only file system, you cannot edit /usr/libexec/tailscale/appdata-guard.sh directly after installation. You need to patch it in the repository before running the installer.
The Solution
Follow these steps when cloning and installing the repository via SSH:
-
Clone the repository as usual
cd /tmp
git clone GitHub - chicohaager/zimaos-tailscale-sysext: Tailscale as a systemd-sysext for ZimaOS. Mirrors the upstream Buildroot recipe — no Docker, full subnet-router/exit-node support · GitHub
cd zimaos-tailscale-sysext -
Patch appdata-guard.sh
Open the guard script inside the sysext directory:
sudo nano ./sysext/appdata-guard.sh
Find the following line (around line 38):
[ -d “$parent” ] && [ ! -L “$parent” ] || refuse “$parent ist kein echter Ordner”
Remove the strict ! -L check so it only verifies that the parent folder is a valid directory:
[ -d “$parent” ] || refuse “$parent ist kein echter Ordner”
Save and exit (Ctrl+O, Enter, then Ctrl+X). -
Run the installer
Now run the installation script:
sudo ./install.sh
Once installed, check the service status:
sudo systemctl status tailscaled.service
You should see Active: active (running).