Launch imageloader on boot.

This launches ImageLoader on boot as a blocking task, before the UI
runs.

BUG=chromium:630421
TEST=emerge-${BOARD} imageloader, load component on device

Change-Id: I33c0f3cd36af4919327e42db313d319cd852bad7
Reviewed-on: https://chromium-review.googlesource.com/390338
Commit-Ready: Greg Kerr <kerrnel@chromium.org>
Tested-by: Greg Kerr <kerrnel@chromium.org>
Reviewed-by: Ricky Zhou <rickyz@chromium.org>
2 files changed
tree: b16b5cb6b0d179d64d85c253cc4050d78fe2bb5f
  1. .presubmitignore
  2. README.md
  3. imageloadclient-glue.xml
  4. imageloadclient.cc
  5. imageloadclient.h
  6. imageloader-glue.xml
  7. imageloader.conf
  8. imageloader.gyp
  9. imageloader.h
  10. imageloader_common.cc
  11. imageloader_common.h
  12. imageloader_impl.cc
  13. imageloader_impl.h
  14. imageloader_main.cc
  15. imageloader_unittest.cc
  16. loop_mounter.cc
  17. loop_mounter.h
  18. mock_loop_mounter.h
  19. org.chromium.ImageLoader.conf
  20. org.chromium.ImageLoader.service
  21. public_keys/
  22. run_tests.cc
  23. test/
README.md

src/platform/imageloader

This aims to provide a generic utility to load (mount) and unload (unmount) verified disk images through DBus IPC.

Binaries

  • imageloader
  • imageloadclient

imageloader can be run as root and can handle mounting and unmounting of disk images. imageloadclient is a simple client (intended to be run as chronos) that can talk to imageloader and ask it to mount and unmount stuff. When imageloader is not running, DBus can invoke it via the one time run option (imageloader -o) and get the task done.