It always works for me without sudo. Unpacking the userdata.tar.bz2 file gives all the files my user and group as owner. I wonder if that's just lucky since I perhaps happen to have the same user id as the packed data.
uid=1000(mabac) gid=1000(mabac) groups=1000(mabac) -- You received this bug notification because you are a member of Linaro Release Team, which is subscribed to the bug report. https://bugs.launchpad.net/bugs/789093 Title: linaro-android-media-create fails when not running as root Status in Linaro Image Tools: Confirmed Bug description: If you run l-a-m-c without sudo, you'll get the traceback below. It happens because the unpacked userdata is not world readable, which causes the following line (from move_contents()) to return an empty list: files = glob.glob(os.path.join(from_, '*')) Which in turn causes the move to fail as there are no files to move to the userdata disk. mv: missing destination file operand after `/tmp/tmpdTw_YS/userdata-disc' Try `mv --help' for more information. Traceback (most recent call last): File "/home/salgado/devel/linaro-image-tools/trunk/linaro-android-media-create", line 147, in <module> populate_partition(DATA_DIR + "/data", DATA_DISK, data_partition) File "/home/salgado/devel/linaro-image-tools/trunk/linaro_image_tools/media_create/rootfs.py", line 29, in populate_partition move_contents(content_dir, root_disk) File "/home/salgado/devel/linaro-image-tools/trunk/linaro_image_tools/media_create/rootfs.py", line 117, in move_contents mv_cmd = ['mv'] File "/home/salgado/devel/linaro-image-tools/trunk/linaro_image_tools/cmd_runner.py", line 87, in wait raise SubcommandNonZeroReturnValue(self._my_args, returncode) linaro_image_tools.cmd_runner.SubcommandNonZeroReturnValue: Sub process "['sudo', '-E', 'mv', '/tmp/tmpdTw_YS/userdata-disc']" returned a non-zero value: 1 To manage notifications about this bug go to: https://bugs.launchpad.net/linaro-image-tools/+bug/789093/+subscriptions _______________________________________________ Mailing list: https://launchpad.net/~linaro-release Post to : [email protected] Unsubscribe : https://launchpad.net/~linaro-release More help : https://help.launchpad.net/ListHelp

