Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(49)

Unified Diff: cros_generate_update_payload

Issue 4892002: cros_generate_upload_payload --patch_kernel should mount from the source (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/crosutils.git@master
Patch Set: Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cros_generate_update_payload
diff --git a/cros_generate_update_payload b/cros_generate_update_payload
index dd0a67c06ec06552c335d3c5d1516280d499e9ad..3b5b9f9d6d3b9df5b8c679d0f7ca1d08c6cf15e9 100755
--- a/cros_generate_update_payload
+++ b/cros_generate_update_payload
@@ -87,7 +87,7 @@ patch_kernel() {
offset=$(($offset * 512))
sudo losetup -o "$offset" "$STATE_LOOP_DEV" "$IMAGE"
STATE_MNT=$(mktemp -d /tmp/state.XXXXXX)
- sudo mount "$STATE_LOOP_DEV" "$STATE_MNT"
+ sudo mount --read-only "$STATE_LOOP_DEV" "$STATE_MNT"
dd if="$STATE_MNT"/vmlinuz_hd.vblock of="$KERN_FILE" conv=notrunc
sudo umount "$STATE_MNT"
STATE_MNT=""
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698