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

Unified Diff: cros_generate_update_payload

Issue 3167035: AU: when generating payload, don't patch kernel by default (Closed) Base URL: ssh://git@chromiumos-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 | « 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 edc40d41fa1fa582a12a29e1a82eeba106c383c3..ad63fd73d6eff3bd248bf8e26548e65017a7d801 100755
--- a/cros_generate_update_payload
+++ b/cros_generate_update_payload
@@ -100,6 +100,8 @@ DEFINE_string src_image "" "Optional: a source image. If specified, this makes\
a delta update."
DEFINE_boolean old_style "$FLAGS_TRUE" "Generate an old-style .gz full update."
DEFINE_string output "" "Output file"
+DEFINE_boolean patch_kernel "$FLAGS_FALSE" "Whether or not to patch the kernel \
+with the patch from the stateful partition (default: false)"
# Parse command line
FLAGS "$@" || exit 1
@@ -131,7 +133,9 @@ if [ "$DELTA" -eq "$FLAGS_TRUE" ]; then
trap cleanup INT TERM EXIT
SRC_KERNEL=$(extract_partition_to_temp_file "$FLAGS_src_image" 2)
- patch_kernel "$FLAGS_src_image" "$SRC_KERNEL"
+ if [ "$FLAGS_patch_kernel" -eq "$FLAGS_TRUE" ]; then
+ patch_kernel "$FLAGS_src_image" "$SRC_KERNEL"
+ fi
SRC_ROOT=$(extract_partition_to_temp_file "$FLAGS_src_image" 3)
echo md5sum of src kernel:
@@ -140,7 +144,9 @@ if [ "$DELTA" -eq "$FLAGS_TRUE" ]; then
md5sum "$SRC_ROOT"
DST_KERNEL=$(extract_partition_to_temp_file "$FLAGS_image" 2)
- patch_kernel "$FLAGS_image" "$DST_KERNEL"
+ if [ "$FLAGS_patch_kernel" -eq "$FLAGS_TRUE" ]; then
+ patch_kernel "$FLAGS_image" "$DST_KERNEL"
+ fi
DST_ROOT=$(extract_partition_to_temp_file "$FLAGS_image" 3)
SRC_MNT=$(mktemp -d /tmp/src_root.XXXXXX)
@@ -162,7 +168,9 @@ else
trap cleanup INT TERM EXIT
DST_KERNEL=$(extract_partition_to_temp_file "$FLAGS_image" 2)
- patch_kernel "$FLAGS_image" "$DST_KERNEL"
+ if [ "$FLAGS_patch_kernel" -eq "$FLAGS_TRUE" ]; then
+ patch_kernel "$FLAGS_image" "$DST_KERNEL"
+ fi
DST_ROOT=$(extract_partition_to_temp_file "$FLAGS_image" 3)
GENERATOR="$(dirname "$0")/mk_memento_images.sh"
« 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