← Back to team overview

linaro-release team mailing list archive

[Bug 789093] [NEW] linaro-android-media-create fails when not running as root

 

You have been subscribed to a public bug by Alexander Sack (asac):

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

** Affects: linaro-image-tools
     Importance: Undecided
         Status: New

-- 
linaro-android-media-create fails when not running as root
https://bugs.launchpad.net/bugs/789093
You received this bug notification because you are a member of Linaro Release Team, which is a direct subscriber.