Package-based updates: sf-update, signed shell and app packages
- sf-update (root): lists sf-shell / sf-app-* in the Gitea generic registry, downloads, checks the Ed25519 signature and unpacks to /var/lib/sf-pkg, switches via current/previous/staged symlinks; the factory copies on the read-only root stay as fallback. A new shell is on trial and rolls back after 3 failed starts. - Launcher: apps from factory + installed packages (newer version wins), Settings > System > Updates (check, install now), shell trial confirm. - Image: sf-update units (boot apply, 6-hourly download, launcher requests), sf-shell-exec wrapper for sf-remote, factory versions, registry token. - CI: .gitea/workflows/packages.yml builds, signs and uploads packages whose version isn't published yet (tools/pkg/packages.sh). - docs/updates.md: protocol and layout. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -18,7 +18,7 @@ fi
|
||||
getent group netdev >/dev/null || groupadd -r netdev
|
||||
usermod -aG netdev tv
|
||||
|
||||
systemctl enable systemd-networkd systemd-resolved iwd bluetooth sf-remote.service sf-data-init.service sf-remote-debug-boot.service sf-remote-debug.path
|
||||
systemctl enable systemd-networkd systemd-resolved iwd bluetooth sf-remote.service sf-data-init.service sf-remote-debug-boot.service sf-remote-debug.path sf-update-apply.service sf-update-requests.path sf-update-auto.timer
|
||||
# sshd only runs when remote debugging is on (Settings > System, sf-remote-debug).
|
||||
systemctl disable ssh.service ssh.socket 2>/dev/null || true
|
||||
systemctl set-default multi-user.target
|
||||
@@ -62,7 +62,7 @@ printf '[Icon Theme]\nName=smartfox-blank\nComment=Invisible cursor\n' >/usr/sha
|
||||
mkdir -p /usr/share/icons/default
|
||||
printf '[Icon Theme]\nInherits=smartfox-blank\n' >/usr/share/icons/default/index.theme
|
||||
|
||||
chmod +x /usr/bin/sf-session /usr/bin/sf-pair /usr/bin/sf-remote-debug /usr/bin/sf-diag 2>/dev/null || true
|
||||
chmod +x /usr/bin/sf-session /usr/bin/sf-pair /usr/bin/sf-remote-debug /usr/bin/sf-diag /usr/bin/sf-shell-exec 2>/dev/null || true
|
||||
|
||||
# Factory copy of /var: sf-data-init.service fills the empty data partition from it.
|
||||
rm -rf /usr/share/factory/var
|
||||
|
||||
Reference in New Issue
Block a user