View Single Post
Old 01-22-2022, 05:27 PM   #5
katadelos
rm -rf /
katadelos ought to be getting tired of karma fortunes by now.katadelos ought to be getting tired of karma fortunes by now.katadelos ought to be getting tired of karma fortunes by now.katadelos ought to be getting tired of karma fortunes by now.katadelos ought to be getting tired of karma fortunes by now.katadelos ought to be getting tired of karma fortunes by now.katadelos ought to be getting tired of karma fortunes by now.katadelos ought to be getting tired of karma fortunes by now.katadelos ought to be getting tired of karma fortunes by now.katadelos ought to be getting tired of karma fortunes by now.katadelos ought to be getting tired of karma fortunes by now.
 
Posts: 219
Karma: 3333683
Join Date: Nov 2019
Location: United Kingdom
Device: K5, KT, KT2, KT3, KT4, KV, PW2, PW3, PW4, PW5
Quote:
Originally Posted by cwalls View Post
Is there a command to trigger "reboot + installation of recovery packages"? Would that work even in cases where UYK is gray?

I see that full/recovery update*.bin files contain uboot + main-kernel (uImage).
How/When do they get flashed? From initrd's recovery-util?

If that's the case, one can't create custom "full updates" without editing the initrd, since the keys are hardcoded there, right? Also how does the recovery-util know it's supposed to flash the update. Is there a flag file or the like?

And what is the recommended way to flash a new kernel? Can I just use dd from the main system?
There's a lot of questions here that aren't really relevant to your original query, you should probably make threads for each of them as well, it would be good if you could explain what your original goal was in your first post so that we can avoid X/Y problem hell.

These threads cover recovery-util and patching the public keys within. It mounts the userstore early during boot and checks if an update is stored there. If it's valid for that device and signed with the correct keys, it will be flashed to the device.
katadelos is offline   Reply With Quote