diff options
author | Daniel Schultz <d.schultz@phytec.de> | 2017-03-20 13:18:52 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-22 11:35:21 +0000 |
commit | 898de507d38c84a6f731abce554bcb4b384e4346 (patch) | |
tree | c4d24d35926ca6ddaf3c2c223fefef0a336bc607 /scripts/lib/wic/partition.py | |
parent | f38c551e6e890dd997aba96b4e43736798bd4424 (diff) | |
download | poky-898de507d38c84a6f731abce554bcb4b384e4346.tar.gz |
wic: partition.py: Add fsck to avoid corrupt EXT file systems
This patch avoids the creation of a corrupt EXT file system.
Since there are no checks if a EXT file system was successfully created,
this should add to prevent possible system failures.
(From OE-Core rev: 95ac3d0637cad7e12f246b8bd64ab64348df0483)
Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/wic/partition.py')
-rw-r--r-- | scripts/lib/wic/partition.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/lib/wic/partition.py b/scripts/lib/wic/partition.py index 6ef8d7f3c9..8e32afcd89 100644 --- a/scripts/lib/wic/partition.py +++ b/scripts/lib/wic/partition.py | |||
@@ -286,6 +286,9 @@ class Partition(): | |||
286 | (self.fstype, extra_imagecmd, rootfs, label_str, rootfs_dir) | 286 | (self.fstype, extra_imagecmd, rootfs, label_str, rootfs_dir) |
287 | exec_native_cmd(mkfs_cmd, native_sysroot, pseudo=pseudo) | 287 | exec_native_cmd(mkfs_cmd, native_sysroot, pseudo=pseudo) |
288 | 288 | ||
289 | mkfs_cmd = "fsck.%s -fy %s" % (self.fstype, rootfs) | ||
290 | exec_native_cmd(mkfs_cmd, native_sysroot, pseudo=pseudo) | ||
291 | |||
289 | def prepare_rootfs_btrfs(self, rootfs, oe_builddir, rootfs_dir, | 292 | def prepare_rootfs_btrfs(self, rootfs, oe_builddir, rootfs_dir, |
290 | native_sysroot, pseudo): | 293 | native_sysroot, pseudo): |
291 | """ | 294 | """ |