build_image: Do not do fstrim for unmounted filesystems

CL:751809 removed a check to bypass zeroing unallocated blocks when the
filesystem is unmounted like squashfs or ubifs partitions. This CL puts
that check back.

TEST=precq runs

Change-Id: Ia81926c3d1821e1ee2ea84b7cabe846f8fdbde2d
Commit-Ready: Ian Coolidge <>
Tested-by: Ian Coolidge <>
Reviewed-by: Gwendal Grignou <>
Reviewed-by: Mike Frysinger <>
1 file changed