aboutsummaryrefslogtreecommitdiff
path: root/linaro_image_tools/media_create
diff options
context:
space:
mode:
authorFathi Boudra <fathi.boudra@linaro.org>2014-02-22 12:35:13 +0200
committerFathi Boudra <fathi.boudra@linaro.org>2014-02-22 10:38:08 +0000
commitaba511143749a175eac54bd61c6753f9250f5e89 (patch)
tree0ac2d90e9ab956162be2d4ffa63827c4fd2c20ce /linaro_image_tools/media_create
parent38cfea183f315dd6c5057d6227bcdb90736dd634 (diff)
downloadlinaro-image-tools-aba511143749a175eac54bd61c6753f9250f5e89.tar.gz
Fix files permissions in copy_drop() to avoid empty Image (LP #1259885)
Change-Id: I62700eb9a362181d6470e2dcfe6903ac7eab281c Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Diffstat (limited to 'linaro_image_tools/media_create')
-rw-r--r--linaro_image_tools/media_create/boards.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/linaro_image_tools/media_create/boards.py b/linaro_image_tools/media_create/boards.py
index 30e950a..a586d09 100644
--- a/linaro_image_tools/media_create/boards.py
+++ b/linaro_image_tools/media_create/boards.py
@@ -135,6 +135,7 @@ def copy_drop(src, dest_dir):
final = os.path.join(dest_dir, os.path.basename(src))
cmd = ["chown", "%s:%s" % (os.getuid(), os.getgid()), final]
cmd_runner.run(cmd, as_root=True).wait()
+ os.chmod(final, 0644)
class BoardException(Exception):