summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@chromium.org>2017-05-09 01:19:53 -0400
committerchrome-bot <chrome-bot@chromium.org>2017-05-10 11:58:28 -0700
commit0dfff398fc9df72af2ebdd205b5722e397e575b4 (patch)
tree3f5cce4862a61c3fc641258645c1fb20d928a33d
parent1aabe7111e6e71d48bb3d684880489f14b39b17e (diff)
downloadvboot-0dfff398fc9df72af2ebdd205b5722e397e575b4.tar.gz
image_signing: swap_rootfs.sh: drop unused script
This script hasn't been executed by image_signing or the cros-signer code, and cs/ doesn't turn up any hits. Scrub it from the codebase. BRANCH=None BUG=chromium:714598 TEST=signing images still works Change-Id: Ic9cf90929f949a7f6b4e41e5b819d6f786c1c833 Reviewed-on: https://chromium-review.googlesource.com/500328 Commit-Ready: Mike Frysinger <vapier@chromium.org> Tested-by: Mike Frysinger <vapier@chromium.org> Reviewed-by: David Riley <davidriley@chromium.org>
-rwxr-xr-xscripts/image_signing/swap_rootfs.sh29
1 files changed, 0 insertions, 29 deletions
diff --git a/scripts/image_signing/swap_rootfs.sh b/scripts/image_signing/swap_rootfs.sh
deleted file mode 100755
index f4564b08..00000000
--- a/scripts/image_signing/swap_rootfs.sh
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/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.
-
-# Load common constants and variables.
-. "$(dirname "$0")/common.sh"
-
-# Print usage string
-usage() {
- cat <<EOF
-Usage: $PROG dst_image src_image
-This will put the root file system from src_image into dst_image.
-EOF
-}
-
-if [ $# -ne 2 ]; then
- usage
- exit 1
-fi
-
-DST_IMAGE=$1
-SRC_IMAGE=$2
-
-temp_rootfs=$(make_temp_file)
-extract_image_partition ${SRC_IMAGE} 3 ${temp_rootfs}
-replace_image_partition ${DST_IMAGE} 3 ${temp_rootfs}
-echo "RootFS from ${SRC_IMAGE} was copied into ${DST_IMAGE}"