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

Side by Side Diff: mod_for_test_scripts/000recordRootFsSize

Issue 5138001: Remove obsolete files. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/installer.git
Patch Set: Created 10 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « mod_for_factory_scripts/factory_setup.sh ('k') | mod_for_test_scripts/001changeBuildName » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #!/bin/bash
2
3 # Copyright (c) 2009 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 # Record the original size of the image without modifications from
8 # cros_mod_image_for_test.sh, for reporting and monitoring through autotest.
9
10 # Record the size, but don't overwrite the file as its existence indicates
11 # that this image is not a production image.
12 echo "Recording production image size."
13 FILE="${ROOT_FS_DIR}/root/bytes-rootfs-prod"
14 if [[ ! -f "${FILE}" ]]; then
15 # This will complain it cannot find a valid mtab so keep it quiet.
16 # Grep for rootfs mount at end of line otherwise we will get rootfs/var
17 # mount point as well.
18 df -B1 -P 2>/dev/null | grep "${ROOT_FS_DIR}$" | awk '{ print $3 }' > \
19 "${FILE}"
20 else
21 echo " Not modifying existing ${FILE}."
22 fi
OLDNEW
« no previous file with comments | « mod_for_factory_scripts/factory_setup.sh ('k') | mod_for_test_scripts/001changeBuildName » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698