autoupdater.rst 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. Autoupdater
  2. ===========
  3. Gluon contains an automatic update system which can be configured in the site configuration.
  4. Building Images
  5. ---------------
  6. By default, the autoupdater is disabled (as it is usually not helpful to have unexpected updates
  7. during development), but it can be enabled by setting the variable GLUON_BRANCH when building
  8. to override the default branch set in the set in the site configuration.
  9. A manifest file for the updater can be generated with `make manifest`. A signing script (using
  10. ecdsautils) can by found in the `contrib` directory.
  11. A fully automated nightly build could use the following commands:
  12. ::
  13. git pull
  14. (cd site && git pull)
  15. make update
  16. make clean
  17. make -j5 GLUON_BRANCH=experimental
  18. make manifest GLUON_BRANCH=experimental
  19. contrib/sign.sh $SECRETKEY images/sysupgrade/experimental.manifest
  20. cp -r images /where/to/put/this/experimental
  21. mv /where/to/put/this/experimental/experimental.manifest /where/to/put/this/experimental/manifest
  22. Infrastructure
  23. --------------
  24. We suggest to have following directory tree accessible via http:
  25. ::
  26. firmware/
  27. stable/
  28. sysupgrade/
  29. factory/
  30. snapshot/
  31. sysupgrade/
  32. factory/
  33. experimental/
  34. sysupgrade/
  35. factory/
  36. The last level is generated by the Gluon build process. Do not forget
  37. to rename the ``<branch>.manifest`` into ``manifest`` inside of the
  38. sysupgrade directories.
  39. The server should be available via IPv6.
  40. Command Line
  41. ------------
  42. These commands can be used on a node.
  43. ::
  44. # Update with some probability
  45. autoupdate
  46. ::
  47. # Force Update Check
  48. autoupdater -f