#!/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.

# abort on error
set -e

# Load common constants and variables.
. "$(dirname "$0")/common.sh"

if [ $# -ne 1 ]; then
    echo "Usage $0 <image>"
    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

#!/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.

# abort on error
set -e

# Load common constants and variables.
. "$(dirname "$0")/common.sh"

if [ $# -ne 1 ]; then
    echo "Usage $0 <image>"
    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

Fix typo in ensure no password script
Fix typo in ensure no password script

The current version always fails - and generates false positives. (This is not
the version that is on the live signer, so we are good.)

Change-Id: I7cb14cdcaf4d96bc2911e596224ead9a3738aa18

BUG=chromium-os:1459
TEST=manually tested

Review URL: http://codereview.chromium.org/6322006
