<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 14, 2016 at 5:29 AM, Oliver Grawert <span dir="ltr"><<a href="mailto:ogra@ubuntu.com" target="_blank">ogra@ubuntu.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">hi,<br>
<br>
Tl;dr; <br>
<br>
- managing seeds for ubuntu-core changed from task to meta package<br>
- x86 based ubuntu-core snaps lost multiple megabytes of fat ... <br>
<br>
And here the details: <br>
<br>
With the switch to ubuntu-image and the new gadget handling that comes<br>
along with this, we were now able to drop all bits of bootloaders we<br>
shipped inside the rootfs (bootloader binaries (specifically grub) are<br>
actually shipped inside the gadget now and do not need to be copied<br>
from the rootfs into the boot partition any more like we did in the<br>
past with ubuntu-device-flash).<br>
<br>
While working on dropping grub from ubuntu-core one large problem arose<br>
... our seeds used tasks instead of a meta package. Since we can not<br>
change the seed itself after a release is out (snappy is based on<br>
xenial) this makes it impossible to actually drop packages ... at the<br>
same time the only way to add new packages is to add very ugly hacks to<br>
livecd-rootfs to import them directly during the rootfs build.<br>
<br>
Since the classic ubuntu has always had similar issues with the above<br>
when doing point releases, it was actually completely switched from<br>
tasks to meta packages (relatively recently) ... i did the same for<br>
ubuntu-core now so that package addition/removal gets easier and to be<br>
in sync with the main distro.<br>
<br>
If you need to add/remove a package in the ubuntu-core snap, please use<br>
the ubuntu-core-meta package now (currently in the snappy-dev/image<br>
PPA, it will be SRUed into xenial-updates proper before GA)<br>
<br>
I am happy to report that thanks to the switch i was also able to drop<br>
about 50 lines of awful hacks from the build system that injected<br>
packages at build time in an undocumented way :)<br>
<br>
Now to the more exciting bits ... <br>
<br>
Dropping all grub bits from the amd64 ubuntu-core snap got us from a<br>
75.1MB package size down to 66.9MB ...<br>
<br>
Likewise the i386 snap went from 72.1MB down to 64.9MB<br>
<br>
I know that a bunch of people will actually celebrate that massive size<br>
reduction (hey manik :) ).<br></blockquote><div>woot woot ;) a big thank you for cleaning this up. what's causing the difference <br>still between the 2 architectures?<br></div><div><br></div><div>/manik<br></div></div></div></div>