Set tag file as group/world readable.
We need to be able to mount stateful partition and read out files
from it. This is required for cases like generating factory update
bundle in finalize_bundle.
BUG=chrome-os-partner:30202
TEST=run finalize_bundle with a factory test image installed with
a fixed toolkit.
Change-Id: I84bd687135936316522bb0d91ba6c605b74db993
Reviewed-on: https://chromium-review.googlesource.com/207511
Commit-Queue: Ricky Liang <jcliang@chromium.org>
Tested-by: Ricky Liang <jcliang@chromium.org>
Reviewed-by: Vic Yang <victoryang@chromium.org>
diff --git a/py/toolkit/installer.py b/py/toolkit/installer.py
index 7b67cb7..778f888 100755
--- a/py/toolkit/installer.py
+++ b/py/toolkit/installer.py
@@ -196,6 +196,7 @@
if enabled:
print '*** Installing %s enabled tag...' % name
Spawn(['touch', path], sudo=True, log=True, check_call=True)
+ Spawn(['chmod', 'go+r', path], sudo=True, log=True, check_call=True)
else:
print '*** Removing %s enabled tag...' % name
Spawn(['rm', '-f', path], sudo=True, log=True, check_call=True)