mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-11-28 20:23:39 +00:00
Change-Id: I7978568414c935eb625539f3ca5af5002e08931f BUG=none TEST=none Review URL: http://codereview.chromium.org/3429011
20 lines
530 B
Bash
Executable File
20 lines
530 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
# Remove the test label from lsb-release to prepare an image for
|
|
# signing using the official keys.
|
|
|
|
# Load common constants and variables.
|
|
. "$(dirname "$0")/common.sh"
|
|
|
|
set -e
|
|
image=$1
|
|
|
|
rootfs=$(mktemp -d)
|
|
mount_image_partition ${image} 3 ${rootfs}
|
|
trap "umount -d ${rootfs}; rm -rf ${rootfs}" EXIT
|
|
sed -i 's/test//' "${rootfs}/etc/lsb-release"
|