commit | a2f81a7dadb8b7405bb40792a4029ebeb0fef70c | [log] [tgz] |
---|---|---|
author | Greg Kerr <kerrnel@chromium.org> | Fri Nov 11 19:57:44 2016 |
committer | chrome-bot <chrome-bot@chromium.org> | Wed Nov 16 01:43:02 2016 |
tree | f2d5a7207453905f247caa59677fb852691c900c | |
parent | ad947558444c2eba74f0e1b02830eff71be9bf51 [diff] |
Allow cleanup of incomplete component registration. If ImageLoader crashes, for example due to a seccomp filter violation, it can leave an incomplete installation on disk that will block a valid installation from occurring in the future. This makes sure ImageLoader cleans up any junk left behind from a crash. BUG=chromium:630421 TEST=emerge-${BOARD} imageloader, setup junk directory, register component Change-Id: Ifdc59cd599576c0c40b1bdf98062d4595cf967c0 Reviewed-on: https://chromium-review.googlesource.com/410182 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.