From 3b06f7de69d0fa145c119e1cec7efdad1ffbcd07 Mon Sep 17 00:00:00 2001 From: Eric Li Date: Sun, 21 Mar 2010 12:37:38 -0700 Subject: [PATCH] Fix bug inside recordRootFsSize. It worked when all mod for test script works inside chroot. But not anymore since "df /" now report the host disk space, not the rootfs. Review URL: http://codereview.chromium.org/1130005 --- mod_for_test_scripts/000recordRootFsSize | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod_for_test_scripts/000recordRootFsSize b/mod_for_test_scripts/000recordRootFsSize index 983ee00116..7ba224c5a8 100755 --- a/mod_for_test_scripts/000recordRootFsSize +++ b/mod_for_test_scripts/000recordRootFsSize @@ -13,7 +13,7 @@ echo "Recording production image size." FILE="${ROOT_FS_DIR}/root/bytes-rootfs-prod" if [[ ! -f "${FILE}" ]]; then # This will complain it cannot find a valid mtab so keep it quiet. - df -B1 / 2>/dev/null | tail -1 | awk '{ print $3 }' > "${FILE}" + df -B1 -P 2>/dev/null | grep ${ROOT_FS_DIR} | awk '{ print $3 }' > "${FILE}" else echo " Not modifying existing ${FILE}." fi