Hung-Te Lin abfb85f6b2 make_factory_package: sudo if --diskimg is a block device
Usually make_factory_package operates with normal files that does not need root
permission - except if output is a block device.

This CL tries to grant root permission by sudo if a block device is assigned to
--diskimg.

BUG=chrome-os-partner:2827
TEST=(as normal user) ./make_factory_acpakge --factory FACTORY \
     --release RELEASE --hwid none --diskimg /dev/sde  # completed

Change-Id: Ie1285e6b6f46f1af286e795a02a83294fce4eeaa
Reviewed-on: http://gerrit.chromium.org/gerrit/8789
Tested-by: Hung-Te Lin <hungte@chromium.org>
Reviewed-by: Tammo Spalink <tammo@chromium.org>
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
Commit-Ready: Hung-Te Lin <hungte@chromium.org>
2011-10-11 02:12:31 -07:00
2010-09-09 14:25:33 -07:00
2011-08-26 13:04:29 -07:00
2011-09-08 17:05:10 -07:00
Description
image build and composition scripts for Flatcar Container Linux
BSD-3-Clause 166 MiB
Languages
Shell 93.1%
Python 6.9%