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

Side by Side Diff: update_kernel.sh

Issue 5859002: Fixed update_kernel.sh not to put an extra set of quotes w/ enter_chroot. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/crosutils.git@master
Patch Set: Created 10 years 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/bash 1 #!/bin/bash
2 2
3 # Copyright (c) 2009-2010 The Chromium OS Authors. All rights reserved. 3 # Copyright (c) 2009-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 # Script to update the kernel on a live running ChromiumOS instance. 7 # Script to update the kernel on a live running ChromiumOS instance.
8 8
9 # Load common constants. This should be the first executable line. 9 # Load common constants. This should be the first executable line.
10 # The path to common.sh should be relative to your script's location. 10 # The path to common.sh should be relative to your script's location.
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 old_kernel="${REMOTE_OUT}" 59 old_kernel="${REMOTE_OUT}"
60 60
61 cmd="vbutil_kernel --pack new_kern.bin \ 61 cmd="vbutil_kernel --pack new_kern.bin \
62 --keyblock /usr/share/vboot/devkeys/kernel.keyblock \ 62 --keyblock /usr/share/vboot/devkeys/kernel.keyblock \
63 --signprivate /usr/share/vboot/devkeys/kernel_data_key.vbprivk \ 63 --signprivate /usr/share/vboot/devkeys/kernel_data_key.vbprivk \
64 --version 1 \ 64 --version 1 \
65 --config ../build/images/${FLAGS_board}/latest/config.txt \ 65 --config ../build/images/${FLAGS_board}/latest/config.txt \
66 --bootloader /lib64/bootstub/bootstub.efi \ 66 --bootloader /lib64/bootstub/bootstub.efi \
67 --vmlinuz /build/${FLAGS_board}/boot/vmlinuz" 67 --vmlinuz /build/${FLAGS_board}/boot/vmlinuz"
68 68
69 ./enter_chroot.sh -- "${cmd}" 69 ./enter_chroot.sh -- ${cmd}
70 70
71 learn_partition 71 learn_partition
72 72
73 remote_cp_to new_kern.bin /tmp 73 remote_cp_to new_kern.bin /tmp
74 74
75 remote_sh dd if=/tmp/new_kern.bin of="${FLAGS_partition}" 75 remote_sh dd if=/tmp/new_kern.bin of="${FLAGS_partition}"
76 76
77 remote_reboot 77 remote_reboot
78 78
79 remote_sh uname -r -v 79 remote_sh uname -r -v
80 80
81 info "old kernel: ${old_kernel}" 81 info "old kernel: ${old_kernel}"
82 82
83 info "new kernel: ${REMOTE_OUT}" 83 info "new kernel: ${REMOTE_OUT}"
84 } 84 }
85 85
86 main $@ 86 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