diff options
author | yyh <yyh@123.com> | 2017-04-01 22:10:27 +0800 |
---|---|---|
committer | admin <yuhuan.yang@samsung.com> | 2017-07-06 17:55:38 +0800 |
commit | 762e27c564de7952b54ed7d40cf5c3d276f0ff68 (patch) | |
tree | d3e700c1b15ae053b086fcbeedac416324d4f032 | |
parent | 8faaeea410dff6cce5e0a048aa297e46548c6f8b (diff) | |
download | mic-762e27c564de7952b54ed7d40cf5c3d276f0ff68.tar.gz mic-762e27c564de7952b54ed7d40cf5c3d276f0ff68.tar.bz2 mic-762e27c564de7952b54ed7d40cf5c3d276f0ff68.zip |
Solve image not clean after created
Change-Id: I02352678364c5879a3cee75b246ab06216f84187
-rw-r--r-- | mic/imager/loop.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mic/imager/loop.py b/mic/imager/loop.py index c0620a4..288a707 100644 --- a/mic/imager/loop.py +++ b/mic/imager/loop.py @@ -446,6 +446,7 @@ class LoopImageCreator(BaseImageCreator): if item['fstype'] == "ext4": runner.show('/sbin/tune2fs -O ^huge_file,extents,uninit_bg %s ' % imgfile) + runner.quiet(["/sbin/e2fsck", "-f", "-y", imgfile]) self.image_files.setdefault('partitions', {}).update( {item['mountpoint']: item['label']}) if self.compress_image: |