commit | 4c4a8d72ba38cf08ca73c0f0c09c7aa17f6e076e | [log] [tgz] |
---|---|---|
author | Greg Kerr <kerrnel@chromium.org> | Wed Jul 27 17:40:32 2016 |
committer | chrome-bot <chrome-bot@chromium.org> | Fri Sep 09 07:04:55 2016 |
tree | d8308eff167c7c8f109abda14ea62ecde44797e2 | |
parent | 05574ca7d2180547f4158b73829e1fbe506e624e [diff] |
Hash the manifest, parameters, and disk image and mount it. This code hashes the manifest, parameters and disk image and mounts them. The next CL will add the final piece to ImageLoader: setting up the dm-verity table on mount. BUG=chromium:630421 TEST=FEATURES="test" emerge-${BOARD} imageloader, and run the client Change-Id: I800f6d9ad361b86a295ab9a4a1b48de942dbbe8f Reviewed-on: https://chromium-review.googlesource.com/363595 Commit-Ready: Greg Kerr <kerrnel@chromium.org> Tested-by: Greg Kerr <kerrnel@chromium.org> Reviewed-by: Ricky Zhou <rickyz@chromium.org>
This aims to provide a generic utility to load (mount) and unload (unmount) verified disk images through DBus IPC.
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.