Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(387)

Unified Diff: scripts/image_signing/ensure_no_password.sh

Issue 5722004: Be less verbose while changing the password. Add a script for checking if password already exists. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/vboot_reference.git@master
Patch Set: review fixes Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | scripts/image_signing/set_chronos_password.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..5bda0a7b53bc03ef0a713d77e1cf1ff9bdf6faf5
--- /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.
+
+# 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
« no previous file with comments | « no previous file | scripts/image_signing/set_chronos_password.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698