commit | 8ab30b1c719dbb97fa524b57a053ec9dd34e00fd | [log] [tgz] |
---|---|---|
author | Alex Deymo <[email protected]> | Fri Jul 10 02:52:29 2015 |
committer | ChromeOS Commit Bot <[email protected]> | Sat Jul 11 00:28:11 2015 |
tree | 95a706027a4e8596ac3360aa47fedae95e57f8ff | |
parent | c3fb0812f6420f28b243147e8c5ff6545b494e84 [diff] |
cros_generate_update_payload: Don't do sudo when calling cgpt. cros_generate_update_payload was using partoffset and partsize from chromeos-common.sh which call sudo before running cgpt to detect the offset and size of a partition. This is ok in the context of chromeos-common.sh, since they are often called over a block device, but in cros_generate_update_payload the images are regular files. This patch stops including chromeos-common.sh and uses its own simpler version of these functions that don't call sudo. BUG=None TEST=Ran cros_generate_update_payload as a regular user. Change-Id: I57d16460ee411e0f7670d7e16d611718c83be2df Reviewed-on: https://chromium-review.googlesource.com/284703 Trybot-Ready: Alex Deymo <[email protected]> Tested-by: Alex Deymo <[email protected]> Reviewed-by: Don Garrett <[email protected]> Commit-Queue: Alex Deymo <[email protected]>