cr50-update.conf 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. # Copyright 2016 The ChromiumOS Authors
  2. # Use of this source code is governed by a BSD-style license that can be
  3. # found in the LICENSE file.
  4. #
  5. # This script first determines if it needs to run at all: if the cr50 firmware
  6. # image is not present in the local directory this must be happening on a
  7. # board without a cr50 device, no need to do anything.
  8. #
  9. # If the firmware image is present, the script checks the number of previous
  10. # runs saved in a state file. The file name is bound to the firmware image, if
  11. # the firmware image changes, the name of the state file will also have to
  12. # change.
  13. #
  14. # In most cases one firmware update run will be enough, but sometimes more
  15. # than one step will be required (when updating from an old cr50 version or
  16. # when rotating RW keys). The entire chromebook needs to be restarted between
  17. # cr50 update runs, up to four update runs on a particular firmware image are
  18. # allowed by this script.
  19. #
  20. # The gsctool utility exit status indicates if more runs are required. Exit
  21. # status of 0 means update has succeeded. Other exit statuses are processed by
  22. # the follow up startup script cr50-result.conf.
  23. #
  24. description "Chromium OS startup file for cr50 firmware updater"
  25. author "chromium-os-dev@chromium.org"
  26. oom score -100
  27. # Starts on boot-services by exception, since it triggers a long chain of
  28. # dependant tpm-related daemons that need to start early. Normally services
  29. # should start on 'starting system-services'.
  30. start on started boot-services
  31. script
  32. exit 0
  33. end script