<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small"><pre style="font-family:courier,"courier new",monospace;font-size:14px;white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0)">I posted this over a week ago and received no responses. I'd really like to get past this problem so that I no longer have to use ubuntu-device-flash to generate a working ubuntu-core. </pre><pre style="font-family:courier,"courier new",monospace;font-size:14px;white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0)"><br></pre><pre style="font-family:courier,"courier new",monospace;font-size:14px;white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0)">I'm trying to generate a custom Ubuntu-Core OS for a network switch
whitebox from DNI. I'm building a custom kernel snap using the latest snapcraft, et. al. - I needed to patch a couple kernel files, but mostly the customization are config changes. The snap was built with confinement:strict, grade:devel</pre><pre style="font-family:courier,"courier new",monospace;font-size:14px;white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0)">I'm using ubuntu-image (Version 0.5+mvo10 Rev 17) to generate the image.</pre><pre style="font-family:courier,"courier new",monospace;font-size:14px;white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0)"><br></pre><pre style="font-family:courier,"courier new",monospace;font-size:14px;white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0)">I'm using the gadget from the latest rev of lp:~vorlon/snappy-hub/snappy-systems.
The assertion file:
type: model
authority-id: TBD
series: 16
brand-id: TBD
model: canonical-pc-amd64
gadget: pc
kernel: deltanetworks-l9032nxb-kernel
architecture: amd64
timestamp: 2016-09-19T8:30:00-04:00
revision: 0
body-length: 0
</pre><pre style="font-family:courier,"courier new",monospace;font-size:14px;white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0)"><br></pre><pre style="font-family:courier,"courier new",monospace;font-size:14px;white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0)"><div style="color:rgb(34,34,34);white-space:normal;font-family:tahoma,sans-serif;font-size:small">The first problem is that firstboot setup fails every time.</div><div style="color:rgb(34,34,34);white-space:normal;font-family:tahoma,sans-serif;font-size:small"><br></div><div style="color:rgb(34,34,34);white-space:normal;font-family:tahoma,sans-serif;font-size:small">I see this message in the syslog...</div><div style="color:rgb(34,34,34);white-space:normal;font-family:tahoma,sans-serif;font-size:small"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;white-space:normal"><font face="tahoma, sans-serif">error: cannot create state: state "/var/lib/snapd/state.json" already exists</font></div></pre><div><br></div><div><div class="gmail_default">The second problem is much more annoying - a very long bootup time.</div><div class="gmail_default"><br></div><div class="gmail_default">From 'Starting Initial cloud-init job (metadata service crawler)...' to getting a login prompt now takes about 260 seconds. This happens on every reboot.</div><div class="gmail_default"><br></div><div class="gmail_default">About 60 seconds is spent in 'Started Update resolvconf for networkd DNS.'</div><div class="gmail_default"><br></div><div class="gmail_default">Another 80 seconds is spent "Calling '<a href="http://169.254.169.254/2009-04-04/meta-data/instance-id" target="_blank">http://169.254.169.254/2009-<wbr>04-04/meta-data/instance-id</a>'"</div><div class="gmail_default"><br></div><div class="gmail_default">Another 120 seconds is spent "Calling 'http:///latest/meta-data/<wbr>instance-id'" - that is the default gateway for the subnet, which, as far as I know, does not have an http server.</div><div class="gmail_default"><br></div><div class="gmail_default">Any ideas on how I can get back to reasonable boot times?</div><div class="gmail_default"><br></div><div class="gmail_default">Regards, Mike</div></div></div></div>