fix: let the app update the startup.sh our builds ship #5
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/startup-script-checksum"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
patches/0002-startup-script-update-checksums.patchaddsdcb85142…, the hash of thestartup.shshipped in v0.7.3.1 (stock v0.7.3 plus0001-), toupdatableChecksumsinservices/service.ts.startup.sh's hash isn't in that list. Upstream follows the same convention: its own current hash is always listed.updateStartupScriptwithluna-send.patches/README.mdexplains the checksum rule.Why
On the TV, v0.7.3.1 installed fine, but dropbear still offered passwords. The boot hook runs
/var/lib/webosbrew/startup.sh, a copy that onlyupdateStartupScriptrefreshes. That call happens when the app's frontend starts, and the update was started from the old app, so the copy stayed stock untilupdateStartupScriptwas run by hand.The copy is only replaced if its current hash is in
updatableChecksums. Stock v0.7.3's hash is on that list, which is why the manual call worked. Ours isn't, so the next build would report the TV's copy as "manually modified" and never replace it.Testing
startup.shhashes todcb85142…, which matches the TV.startup.shis modified.service.ts, notstartup.sh, so the next rebuild (v0.7.3.2) ships the same boot script, and the TV should see no change there.🤖 Generated with Claude Code
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.