Errors building custom ubuntu-core images

Luke Williams luke.williams at canonical.com
Thu Oct 13 23:08:59 UTC 2016


Hello,

I am trying to build a custom ubuntu-core image with a custom kernel. Below
is my assertion:

{

  "type": "model",

  "authority-id": "<removed>",

  "brand-id": "<removed>",

  "series": "16",

  "model": "pc",

  "architecture": "amd64",

  "gadget": "pc",

  "kernel": "onl-kernel_3.18.25_amd64.snap",

  "timestamp": "2016-10-13T22:26:50+00:00"

}

I the sign the assertion and have a valid assertion model, but when I try
to build, I get the following error:


$ sudo /snap/bin/ubuntu-image -c stable -o onl-snappy.img --extra-snaps
onl-kernel_3.18.25_amd64.snap pc.model

Fetching core

Copying "onl-kernel_3.18.25_amd64.snap" (onl-kernel)

Fetching pc

onl-kernel already prepared, skipping

uncaught exception in state machine step: [2] load_gadget_yaml

Traceback (most recent call last):

  File
"/snap/ubuntu-image/20/usr/lib/python3.5/site-packages/ubuntu_image/state.py",
line 68, in __next__

    step()

  File
"/snap/ubuntu-image/20/usr/lib/python3.5/site-packages/ubuntu_image/builder.py",
line 145, in load_gadget_yaml

    with open(yaml_file, 'r', encoding='utf-8') as fp:

FileNotFoundError: [Errno 2] No such file or directory:
'/tmp/tmpfmnriroe/unpack/gadget/meta/gadget.yaml'

Crash in state machine

Traceback (most recent call last):

  File
"/snap/ubuntu-image/20/usr/lib/python3.5/site-packages/ubuntu_image/__main__.py",
line 117, in main

    list(state_machine)

  File
"/snap/ubuntu-image/20/usr/lib/python3.5/site-packages/ubuntu_image/state.py",
line 68, in __next__

    step()

  File
"/snap/ubuntu-image/20/usr/lib/python3.5/site-packages/ubuntu_image/builder.py",
line 145, in load_gadget_yaml

    with open(yaml_file, 'r', encoding='utf-8') as fp:

FileNotFoundError: [Errno 2] No such file or directory:
'/tmp/tmpfmnriroe/unpack/gadget/meta/gadget.yaml'
It almost looks like the gadget snap is no longer called pc, but I cannot
find in any past threads or documentation what it was changed to.

Any help would be greatly appreciated.

-- 
Thanks,


Luke Williams - Technical Partner Manager, Network Switches and Ubuntu-Core
luke.williams at canonical.com
www.canonical.com || www.ubuntu.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/snapcraft/attachments/20161013/0112be20/attachment.html>


More information about the Snapcraft mailing list