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

Unified Diff: mod_image_for_dev_recovery.sh

Issue 3050039: clean up install_gpt args to use number of sectors (Closed) Base URL: http://src.chromium.org/git/crosutils.git
Patch Set: Created 10 years, 4 months 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 | « image_to_vm.sh ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mod_image_for_dev_recovery.sh
diff --git a/mod_image_for_dev_recovery.sh b/mod_image_for_dev_recovery.sh
index d984520aa0a974f26760f49b33eeacf4e4a92216..236b0bacab52b016b165e50e45aafef90779cfaf 100755
--- a/mod_image_for_dev_recovery.sh
+++ b/mod_image_for_dev_recovery.sh
@@ -115,8 +115,9 @@ update_partition_table() {
dd if="${FLAGS_dev_install_shim}" of="${TEMP_PMBR}" bs=512 count=1
# Set up a new partition table
- install_gpt "${TEMP_IMG}" "${TEMP_ROOTFS}" "${TEMP_STATE}" "${TEMP_PMBR}" \
- "${TEMP_ESP}" false $(roundup $(numsectors ${TEMP_ROOTFS}))
+ install_gpt "${TEMP_IMG}" "$(numsectors $TEMP_ROOTFS)" \
+ "$(numsectors $TEMP_STATE)" "${TEMP_PMBR}" "$(numsectors $TEMP_ESP)" \
+ false $(roundup $(numsectors ${TEMP_ROOTFS}))
# Copy into the partition parts of the file
dd if="${TEMP_ROOTFS}" of="${TEMP_IMG}" conv=notrunc bs=512 \
« no previous file with comments | « image_to_vm.sh ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698