387
|
|
Fix linaro-android-media-create after recent mount/umount changes
Without this, this traceback occurs: mkfs.vfat 3.0.11 (24 Dec 2010) mount: /dev/mmcblk0p1 already mounted or /tmp/tmp18MYEP/boot-disc busy mount: according to mtab, /dev/mmcblk0p1 is already mounted on /tmp/tmp18MYEP/boot-disc Traceback (most recent call last): File "./linaro-android-media-create", line 144, in <module> board_config.populate_boot_script(boot_partition, BOOT_DISK, args.consoles) File "/usr/src/repos/linaro/linaro-image-tools/linaro_image_tools/media_create/android_boards.py", line 82, in populate_boot_script as_root=True).wait() File "/usr/src/repos/linaro/linaro-image-tools/linaro_image_tools/cmd_runner.py", line 100, in wait raise SubcommandNonZeroReturnValue(self._my_args, returncode) linaro_image_tools.cmd_runner.SubcommandNonZeroReturnValue: Sub process "['mount', '/dev/mmcblk0p1', '/tmp/tmp18MYEP/boot-disc']" returned a non-zero value: 32
The problem is that linaro-android-media-create assumes populate_partition(... BOOT_DISK ...) unmounts the boot filesystem after running (no longer true).
Furthermore, board_config.populate_boot_script used to umount the boot filesystem, causing the umount in the atexit handler to fail.
|
Bernhard Rosenkraenz... |
12 years ago
|
|
|
386
|
|
|
James Tunnicliffe |
12 years ago
|
|
|
385
|
|
|
James Tunnicliffe |
12 years ago
|
|
|
384
|
|
|
Guilherme Salgado |
12 years ago
|
|
|
383
|
|
|
James Tunnicliffe |
12 years ago
|
|
|
382
|
|
|
James Westby |
12 years ago
|
|
|
381
|
|
|
James Tunnicliffe |
12 years ago
|
|
|
380
|
|
|
James Tunnicliffe |
12 years ago
|
|
|
379
|
|
|
James Westby |
12 years ago
|
|
|
378
|
|
|
Guilherme Salgado |
12 years ago
|
|
|
377
|
|
|
Guilherme Salgado |
12 years ago
|
|
|
376
|
|
|
James Tunnicliffe |
12 years ago
|
|
|
375
|
|
|
James Tunnicliffe |
12 years ago
|
|
|
374
|
|
|
Guilherme Salgado |
12 years ago
|
|
|
373
|
|
|
James Tunnicliffe |
12 years ago
|
|
|
372
|
|
|
Mattias Backman |
12 years ago
|
|
|
371
|
|
|
Mattias Backman |
12 years ago
|
|
|
370
|
|
|
Mattias Backman |
12 years ago
|
|
|
369
|
|
|
Mattias Backman |
12 years ago
|
|
|
368
|
|
|
Mattias Backman |
12 years ago
|
|
|