Exit normally if the requested image is missing.

imageloader uses LOG(FATAL) if the image it attempted to mount is
missing, or fails to mount for some reason (corrupt, etc.). This
generates crash reports, so it should log the error and exit cleanly
with exit code 1.

BUG=chromium:685479
TEST=test_that -b ${BOARD} ${DUT_ip} imageloader

Change-Id: Ic41d155c25bcd644dbc3410e7c55d0f2c4182397
Reviewed-on: https://chromium-review.googlesource.com/433446
Commit-Ready: Greg Kerr <kerrnel@chromium.org>
Tested-by: Greg Kerr <kerrnel@chromium.org>
Reviewed-by: Mike Frysinger <vapier@chromium.org>
1 file changed
tree: e6ac928bccbb0865de7a23713eee39fd247ed658
  1. dbus_adaptors/
  2. dbus_permissions/
  3. dbus_service/
  4. public_keys/
  5. seccomp/
  6. testdata/
  7. .presubmitignore
  8. component.cc
  9. component.h
  10. component_unittest.cc
  11. imageloader.cc
  12. imageloader.conf
  13. imageloader.gyp
  14. imageloader.h
  15. imageloader_impl.cc
  16. imageloader_impl.h
  17. imageloader_main.cc
  18. imageloader_unittest.cc
  19. imageloader_wrapper
  20. mock_verity_mounter.h
  21. README.md
  22. run_tests.cc
  23. test_utilities.cc
  24. test_utilities.h
  25. verity_mounter.cc
  26. verity_mounter.h
README.md

src/platform/imageloader

This aims to provide a generic utility to verify and load (mount) signed disk images through DBUS IPC.

Binaries

  • imageloader

imageloader handles the mounting of disk images. imageloader should be executed via the imageloader_wrapper script, which ensures that imageloader's storage exists and is owned by imageloaderd user. When imageloader is not running, DBus will automatically invoke it. After 20 seconds of inactivity, the service exits.