<div dir="ltr">To be extra clear: it's not "one gadget, one image". The model assertion is really what defines what goes into the image, including the gadget itself.<div><br></div><div>So it's really "One model, one image."</div><div><br></div><div>That's a very nice invariant, considering that the model is actually signed by the brand.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 11, 2016 at 7:49 PM, Gustavo Niemeyer <span dir="ltr"><<a href="mailto:gustavo.niemeyer@canonical.com" target="_blank">gustavo.niemeyer@canonical.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><span class=""><br><div class="gmail_quote">On Tue, Oct 11, 2016 at 6:45 PM, Oliver Grawert <span dir="ltr"><<a href="mailto:ogra@ubuntu.com" target="_blank">ogra@ubuntu.com</a>></span> wrote:</div></span><div class="gmail_quote"><span class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span style="color:rgb(80,0,80);font-size:12.8px">> You can use the same image for whatever you need. One image, one<br></span><span style="color:rgb(80,0,80);font-size:12.8px">> gadget.</span></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> </blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">if you define no image size today and use ubuntu-image today you<br>
(should) get a 300MB image that you dd to a device ... on startup,<br>
before the first mount occurs the image gets resized to the full disk<br>
size and it gets made sure that your GPT backup table sits in the right<br>
place at the end of the disk.<br>
<br>
if you start to hard code sizes you lose all this flexibility, you will<br>
already not be able to use the pc image on a 2GB USB key today simply<br>
because we hard code the size for it to ~3GB just for the kvm use case.<br></blockquote><div><br></div></span><div>Please re-read the point I made above. I didn't talk about resizing at all.</div><div><br></div><div>One gadget, one image. If it makes sense for a category of devices to resize, let's figure the best way to represent that in gadget.yaml.</div><div><br></div><div><br></div><div>(...)</div><span class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">so you think we should have a pc.img, a pc-kvm.img, pc-vmware.img and a<br></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
pc-cloud.img using the same kernel the same core snap and apart from<br>
one line the same gadget ? <br></blockquote><div><br></div></span><div>If all of these environments can run with the exact same image, by all means let's have a single image.</div><div><br></div><div><br></div></div><div class="m_-1023076679924276096gmail_signature">gustavo @ <a href="http://niemeyer.net" target="_blank">http://niemeyer.net</a></div>
</div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">gustavo @ <a href="http://niemeyer.net" target="_blank">http://niemeyer.net</a></div>
</div>