aboutsummaryrefslogtreecommitdiff
path: root/linaro_image_tools/media_create
diff options
context:
space:
mode:
authorRyan Harkin <ryan.harkin@linaro.org>2014-12-04 11:52:23 +0000
committerRyan Harkin <ryan.harkin@linaro.org>2014-12-04 11:54:26 +0000
commit4084695b4fabcd2cf46c729b8045116d2a659083 (patch)
tree3cdce124f4e0a4fdb898597a9924860f4bbf0cf0 /linaro_image_tools/media_create
parentd0da1edd1a8e5f6bcf39f7acf9e8d530ecffd8ae (diff)
downloadlinaro-image-tools-4084695b4fabcd2cf46c729b8045116d2a659083.tar.gz
Add -F param to mkfs calls
Latest mkfs always asks for permission to create a partition, adding -F forces it to create the partition without prompting. Change-Id: Icff7d1e287141ca8956cbc49be978fa073108b8a Signed-off-by: Ryan Harkin <ryan.harkin@linaro.org>
Diffstat (limited to 'linaro_image_tools/media_create')
-rw-r--r--linaro_image_tools/media_create/partitions.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/linaro_image_tools/media_create/partitions.py b/linaro_image_tools/media_create/partitions.py
index caa44a6..1ed34ed 100644
--- a/linaro_image_tools/media_create/partitions.py
+++ b/linaro_image_tools/media_create/partitions.py
@@ -98,7 +98,7 @@ def setup_android_partitions(board_config, media, image_size, bootfs_label,
for label, dev in ext4_partitions.iteritems():
mkfs = 'mkfs.%s' % "ext4"
proc = cmd_runner.run(
- [mkfs, dev, '-L', label],
+ [mkfs, '-F', dev, '-L', label],
as_root=True)
proc.wait()
@@ -181,7 +181,7 @@ def setup_partitions(board_config, media, image_size, bootfs_label,
print "\nFormating root partition\n"
mkfs = 'mkfs.%s' % rootfs_type
proc = cmd_runner.run(
- [mkfs, rootfs, '-L', rootfs_label],
+ [mkfs, '-F', rootfs, '-L', rootfs_label],
as_root=True)
proc.wait()