Merge "common: mkimage: Set e2fs max-mount-count to 0"

This commit is contained in:
Jeffy Chen
2019-01-11 20:46:17 +08:00
committed by Gerrit Code Review

View File

@ -74,8 +74,8 @@ mkimage()
dd of=$TARGET bs=1M seek=$SIZE count=0 2>&1 || fatal "Failed to dd image!"
case $FS_TYPE in
ext[234])
# Set max-mount-counts to 2, and disable the time-dependent checking.
mke2fs $TARGET -d $SRC_DIR && tune2fs -c 2 -i 0 $TARGET
# Set max-mount-counts to 0, and disable the time-dependent checking.
mke2fs $TARGET -d $SRC_DIR && tune2fs -c 0 -i 0 $TARGET
;;
msdos|fat|vfat)
# Use fat32 by default