Skip to content

sys: pass -y to sysupgrade and factory-reset from web UI (Closes #182) - #183

Merged
Cd1s merged 1 commit into
mainfrom
fix/182-sysupgrade-yes
Nov 18, 2026
Merged

Cd1s merged 1 commit into
mainfrom
fix/182-sysupgrade-yes

Conversation

@Cd1s

@Cd1s Cd1s commented Nov 18, 2026

Copy link
Copy Markdown
Owner

Fixes #182.

The web UI runs /usr/libexec/mr/sysupgrade and /usr/libexec/mr/factory-reset detached without a TTY, but neither call passed -y, causing the scripts to exit 1 with pass -y to confirm (non-interactive).

  • Pass -y in apiSysFwUpgrade and apiSysFactoryReset (mr/mod_sys_fw.go)
  • Update TestSysFirmwareUpload to verify -y is passed to both scripts
  • Update docs/modules/sys.md

Tested with go vet ./... and go test ./... on remote-build.

🤖 Generated with Claude Code

Co-Authored-By: Claude Code <noreply@anthropic.com>
@Cd1s
Cd1s merged commit d83d68c into main Nov 18, 2026
2 checks passed
@Cd1s
Cd1s deleted the fix/182-sysupgrade-yes branch November 18, 2026 03:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

更新失败

1 participant