Disallow formatting of boot devices.
BUG=chromium-os:34171
TEST=Tested the following:
1. Build and run cros-disks unit tests.
2. Run platform_CrosDisksFormat test.
3. Manually format a non-boot device using org.chromium.CrosDisks.Format
DBus API and it succeeds.
4. Manually format a boot device using org.chromium.CrosDisks.Format
DBus API and it fails.
(cherry picked from commit 7c94a5dc3e9c863358441fd247da072dac1394dd)
Change-Id: I1e658ce87e8270adb187e37e0fffaa04f813de53
Reviewed-on: https://gerrit.chromium.org/gerrit/34444
Reviewed-by: Ben Chan <benchan@chromium.org>
Tested-by: Ben Chan <benchan@chromium.org>
1 file changed