Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 # Load common constants and variables. | |
| 8 . "$(dirname "$0")/common.sh" | |
| 9 | |
| 10 # abort on error | |
| 11 set -e | |
|
scottz
2010/12/10 22:23:23
We probably want this about the sourcing of common
| |
| 12 | |
| 13 if [ $# -ne 1 ]; then | |
| 14 echo "Usage $0 <image>" | |
| 15 exit | |
|
scottz
2010/12/10 22:23:23
exit 1?
| |
| 16 fi | |
| 17 | |
| 18 IMAGE=$1 | |
| 19 ROOTFS=$(make_temp_dir) | |
| 20 mount_image_partition_ro "$IMAGE" 3 "$ROOTFS" | |
| 21 | |
| 22 if ! no_chronos_password $rootfs; then | |
| 23 echo "chronos password is set! Shouldn't be for release builds." | |
| 24 exit 1 | |
| 25 fi | |
| OLD | NEW |