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
thanks salgado!
subscribed linaro-release ...
could be release noted or we can ensure that our default instructions posted should just refer to sudo linaro- android- media-create.