W dniu 21.03.2012 04:12, Spring Zhang pisze:
On 21 March 2012 07:58, Zygmunt Krynicki <zygmunt.krynicki@canonical.com mailto:zygmunt.krynicki@canonical.com> wrote:
Hi Ti took the liberty of building a script that automates construction of LAVA master images. The work is not finished but the bulk of the work has been done (and greatly facilitated by Dave Pigott's partitioning script).
Will you introduce the script as base to start?
I'm not sure what you mean here but here it goes:
If you want to use the script you need to have the branch checked out. Run lava-create-master <board> where board can be beagle, panda or snowball.
After a while you will have a <board>-master.img (and a corresponding <board>-vanilla.img in cache/). Copy that image to an SD and run dave's partitioning script (currently in lava-dispatcher/doc/scritps). NOTE: Make sure to edit his script to ensure it does not wipe out /dev/sdb.
I'll merge both scripts today so that anyone can get one-stop-shop for fully automatic master image.
Oh, I believe this script will only work on precise due to improvements in util-linux, specifically on the ability for partx to create loopback device partitions. If it fails on oneiric I won't be fixing it.
Thanks ZK