• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
8set -e
9
10# Load common constants and variables.
11. "$(dirname "$0")/common.sh"
12
13if [ $# -ne 1 ]; then
14    echo "Usage $0 <image>"
15    exit 1
16fi
17
18IMAGE=$1
19ROOTFS=$(make_temp_dir)
20mount_image_partition_ro "$IMAGE" 3 "$ROOTFS"
21
22if ! no_chronos_password $ROOTFS; then
23    die "chronos password is set! Shouldn't be for release builds."
24fi
25