linaro-release team mailing list archive
-
linaro-release team
-
Mailing list archive
-
Message #00352
[Bug 789093] Re: linaro-android-media-create fails when not running as root
** Changed in: linaro-image-tools
Status: Confirmed => In Progress
--
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:
In Progress
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