termina_build_image: fix file system shrink.
Warn users to install fdupes when it's not available.
Also, resize2fs doesn't work for me on 1K block size and man page of resize2fs
reads "The minimum size of the filesystem as estimated by resize2fs may be
incorrect, especially for filesystems with 1k and 2k blocksizes.", so just
begin with the 110% of disk usage of root fs.
TEST=manual - run termina_build_image
Commit-Ready: ChromeOS CL Exonerator Bot <email@example.com>
Tested-by: Lepton Wu <firstname.lastname@example.org>
Reviewed-by: Stephen Barber <email@example.com>
1 file changed