ubuntu-image syntax for local gadget snap

Barry Warsaw barry at ubuntu.com
Wed Nov 30 17:12:55 UTC 2016


On Sep 28, 2016, at 07:59 AM, Dave Breed wrote:

>I'm trying to build an Snappy image for my armhf using the
>ubuntu-image tool. I've rolled my own kernel and gadget snaps, and
>model assertion file. I understand that I can use the --extra-snaps
>argument on the command line to specify a path to a local kernel snap,
>but I'm not clear if the same can be done for the gadget snap? I've
>tried using --extra-snaps and, alternatively, specifying a local
>absolute path to the snap in the assertion file, but either way
>ubuntu-image just returns an error saying the gadget snap can't be
>found.

This error message is probably coming from `snap prepare-image`, which is the
subcommand that ubuntu-image uses to do all the work of downloading the
relevant snaps.  ubuntu-image itself doesn't do anything with --extra-snaps,
it just passes it along to `snap prepare-image`.

Cheers,
-Barry




More information about the Snapcraft mailing list