[PATCH 1/1] Android build project: Fix 'mkyaffs2image -f ...' selabel_lookup error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



When building SE-Android, mkyaffs2image fails with an selabel_lookup error
as the 'mountpoint' parameter does not match the file_context entry
(requires a leading '/').

Signed-off-by: Richard Haines <richard_c_haines@xxxxxxxxxxxxxx>
---
 tools/releasetools/build_image.py |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tools/releasetools/build_image.py b/tools/releasetools/build_image.py
index a615d1a..2b42d7d 100755
--- a/tools/releasetools/build_image.py
+++ b/tools/releasetools/build_image.py
@@ -126,11 +126,11 @@ def main(argv):
   image_filename = os.path.basename(out_file)
   mount_point = ""
   if image_filename == "system.img":
-    mount_point = "system"
+    mount_point = "/system"
   elif image_filename == "userdata.img":
-    mount_point = "data"
+    mount_point = "/data"
   elif image_filename == "cache.img":
-    mount_point = "cache"
+    mount_point = "/cache"
   else:
     print >> sys.stderr, "error: unknown image file name ", image_filename
     exit(1)
-- 
1.7.10.4



--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@xxxxxxxxxxxxx with
the words "unsubscribe selinux" without quotes as the message.


[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux