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

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

Issue 3429011: Add script to remove the test label from lsb-release descriptions of an image. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/vboot_reference.git
Patch Set: remove sudo Created 10 years, 3 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
(Empty)
1 #!/bin/bash
2
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
5 # found in the LICENSE file.
6
7 # Remove the test label from lsb-release to prepare an image for
8 # signing using the official keys.
9
10 # Load common constants and variables.
11 . "$(dirname "$0")/common.sh"
12
13 set -e
14 image=$1
15
16 rootfs=$(mktemp -d)
17 mount_image_partition ${image} 3 ${rootfs}
18 trap "umount -d ${rootfs}; rm -rf ${rootfs}" EXIT
19 sed -i 's/test//' "${rootfs}/etc/lsb-release"
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