Chromium Code Reviews| Index: scripts/image_signing/ensure_no_password.sh |
| diff --git a/scripts/image_signing/ensure_no_password.sh b/scripts/image_signing/ensure_no_password.sh |
| new file mode 100755 |
| index 0000000000000000000000000000000000000000..ff17fa7af2cbf60d25be7acc103b9e8e2bb20c47 |
| --- /dev/null |
| +++ b/scripts/image_signing/ensure_no_password.sh |
| @@ -0,0 +1,25 @@ |
| +#!/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. |
| + |
| +# Load common constants and variables. |
| +. "$(dirname "$0")/common.sh" |
| + |
| +# abort on error |
| +set -e |
|
scottz
2010/12/10 22:23:23
We probably want this about the sourcing of common
|
| + |
| +if [ $# -ne 1 ]; then |
| + echo "Usage $0 <image>" |
| + exit |
|
scottz
2010/12/10 22:23:23
exit 1?
|
| +fi |
| + |
| +IMAGE=$1 |
| +ROOTFS=$(make_temp_dir) |
| +mount_image_partition_ro "$IMAGE" 3 "$ROOTFS" |
| + |
| +if ! no_chronos_password $rootfs; then |
| + echo "chronos password is set! Shouldn't be for release builds." |
| + exit 1 |
| +fi |