Home | History | Annotate | Download | only in image_signing
      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 # abort on error
      8 set -e
      9 
     10 # Load common constants and variables.
     11 . "$(dirname "$0")/common.sh"
     12 
     13 if [ $# -ne 1 ]; then
     14     echo "Usage $0 <image>"
     15     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     die "chronos password is set! Shouldn't be for release builds."
     24 fi
     25