~caio1982/ubuntu-system-image/remote-sis-generator-skips-metadata

Viewing all changes in revision 272.

  • Committer: Caio Begotti
  • Date: 2015-05-26 20:18:13 UTC
  • Revision ID: caio.begotti@canonical.com-20150526201813-j5dar9f8cbbe8ggp
make the remote system-image generator respect the metadata of existing images

this is a really big problem when you have multiple devices in the same channel and both pull the same ubuntu rootfs, exactly like we have right now for arale... e.g. 'arale' and 'generic' devices both pulling a stable ubuntu rootfs from system-image.ubuntu.com

device 'generic' first pulls it just fine and loads its json with the metadata, including ubuntu='' versioning, but then when the 'arale' device imports its stuff, the ubuntu rootfs has been imported already so the path matches and the generator returns it without loading its json file

no ubuntu='' version string for any other devices in the channel :-(

fun fact: a 'generic' device is always processed first, even if it was created later because of a sorting done in the device list (i haven't really checked it so i assum it happens), so with the current code ONLY the 'generic' devices get their ubuntu='' version right for all those rootfs tarballs

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: