Chromium Code Reviews| Index: src/scripts/mod_for_test_scripts/000recordRootFsSize |
| diff --git a/src/scripts/mod_for_test_scripts/000recordRootFsSize b/src/scripts/mod_for_test_scripts/000recordRootFsSize |
| index 983ee00116b0cdfbfca52d4611fe29d39772dd1e..7ba224c5a85fe3e11ba271983f6a577e4f1b3dda 100755 |
| --- a/src/scripts/mod_for_test_scripts/000recordRootFsSize |
| +++ b/src/scripts/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}" |
|
kmixter1
2010/03/22 16:12:54
Could df -B1 ${ROOT_FS_DIR} be used instead? It's
|
| else |
| echo " Not modifying existing ${FILE}." |
| fi |