ubuntu-image with local gadget snap

David Harker david.harker at bgch.co.uk
Thu Sep 29 14:11:36 UTC 2016


Hi Steve,

Thanks for getting back to me. I did try using the --extra-snaps, but
I always just get an error from prepare_image saying it can't find the
snap. So in my model assertion I have:

 "gadget": "local-gadget.snap",

and then I pass:

 --extra-snaps /home/build/image/local-gadget.snap

on the command line, but I always seem to get the not found error. It
seems as though it's just ignoring the extra-snaps. I wonder if the
'not found' error is actually caused by a different problem since the
file does exist. Presumably other people must have this working?
Perhaps I'm missing some devmode flag or similar?

Thanks for your help.


On 28 September 2016 at 18:02, Steve Langasek
<steve.langasek at canonical.com> wrote:
> Hi David,
>
> On Wed, Sep 28, 2016 at 02:49:42PM +0100, David Harker wrote:
>> Hello,
>
>> I'm trying to build an armhf image using ubuntu-image. It is possible to
>> use a local gadget snap and, if so, is anyone able to tell me what the
>> correct method/syntax is?
>
> I understand that this is supposed to work by using an --extra-snaps
> argument pointing to the local file.  So you declare your gadget snap by
> name in your model assertion per normal, then pass --extra-snaps
> /path/to/gadget.snap, and snap prepare-image should pick this up and DTRT.
>
> --
> Steve Langasek                   Give me a lever long enough and a Free OS
> Debian Developer                   to set it on, and I can move the world.
> Ubuntu Developer                                    http://www.debian.org/
> slangasek at ubuntu.com                                     vorlon at debian.org



More information about the Devices mailing list