Code review comment for lp:~liuyq0307/lava-master-image-scripts/add-sdcard

Revision history for this message
Yongqin Liu (liuyq0307) wrote :

./lava-create-master will mount the image file locally, and add some file
into it to make it do the partition job when first boot.
(the files are in master-rootfs-extras directory)
but the partx error make it not able to mount the image file locally.

On 20 June 2012 09:28, Spring Zhang <email address hidden> wrote:

> I upgrade my linux-util to precise version, and found the same error like
> Yongqin's when using partx.
>
> But I say it doesn't matter, it will finish the image, I can dd it to a SD
> card and make it boot up, the only missing is that partition making process
> doesn't happen automatically when first boot up. The error I met:
>
> $ ./lava-create-master imx53 -o ../masteimx53.img --verbose
> LAVA master images are easy to make, just three steps:
>
> 1) Preparing vanilla Linaro image
> * Inhibiting udisks...
> * Re-using existing vanilla image:
> /home/spring/.cache/lava/master-image-scripts/pristine-images/imx53-vanilla.img
> 2) Converting vanilla image to LAVA master image
> * Creating a copy of vanilla image...
> * Attaching master image to loopback device...
> * Adding partitions to the loopback device...
> partx: /dev/loop0: error adding partitions 1-3
> * Removing loopback device partitions...
> partx: defined range <1:0> does not make sense
>
> $ partx --show ../master_imx53.img
> NR START END SECTORS SIZE NAME UUID
> 1 1 8191 8191 4M
> 2 8192 114687 106496 52M
> 3 114688 4194303 4079616 2G
>
> --
>
> https://code.launchpad.net/~liuyq0307/lava-master-image-scripts/add-sdcard/+merge/110770
> You are the owner of lp:~liuyq0307/lava-master-image-scripts/add-sdcard.
>

« Back to merge proposal