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

Side by Side Diff: scripts/image_signing/make_dev_ssd.sh

Issue 4071002: make_dev_ssd: fix the offset for enable_rw_mount (Closed) Base URL: http://git.chromium.org/git/vboot_reference.git
Patch Set: Created 10 years, 2 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/sh 1 #!/bin/sh
2 # 2 #
3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 # 6 #
7 # This script can change key (usually developer keys) and kernel config 7 # This script can change key (usually developer keys) and kernel config
8 # of a kernels on SSD. 8 # of a kernels on SSD.
9 9
10 SCRIPT_BASE="$(dirname "$0")" 10 SCRIPT_BASE="$(dirname "$0")"
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 ensure_files_exist \ 218 ensure_files_exist \
219 "$KERNEL_KEYBLOCK" \ 219 "$KERNEL_KEYBLOCK" \
220 "$KERNEL_DATAKEY" \ 220 "$KERNEL_DATAKEY" \
221 "$KERNEL_PUBKEY" \ 221 "$KERNEL_PUBKEY" \
222 "$FLAGS_image" || 222 "$FLAGS_image" ||
223 exit 1 223 exit 1
224 224
225 # Make the root filesystem remountable if needed. 225 # Make the root filesystem remountable if needed.
226 if [ ${FLAGS_remove_rootfs_verification} = $FLAGS_TRUE ]; then 226 if [ ${FLAGS_remove_rootfs_verification} = $FLAGS_TRUE ]; then
227 local root_offset=$(partoffset "$FLAGS_image" 3) 227 local root_offset=$(partoffset "$FLAGS_image" 3)
228 enable_rw_mount "$FLAGS_image" "$root_offset" 228 enable_rw_mount "$FLAGS_image" "$((root_offset * 512))"
229 fi 229 fi
230 230
231 resign_ssd_kernel "$FLAGS_image" || num_signed=$? 231 resign_ssd_kernel "$FLAGS_image" || num_signed=$?
232 232
233 debug_msg "Complete." 233 debug_msg "Complete."
234 if [ $num_signed -gt 0 -a $num_signed -le 2 ]; then 234 if [ $num_signed -gt 0 -a $num_signed -le 2 ]; then
235 # signed 1 or two kernels 235 # signed 1 or two kernels
236 echo "Successfully re-signed $num_signed kernel(s) on device $FLAGS_image". 236 echo "Successfully re-signed $num_signed kernel(s) on device $FLAGS_image".
237 else 237 else
238 err_die "Failed re-signing kernels." 238 err_die "Failed re-signing kernels."
239 fi 239 fi
240 } 240 }
241 241
242 main 242 main
OLDNEW
« 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