Created by Lee Trager and last modified
Get this branch:
bzr branch lp:~ltrager/maas-images/static_yum_mirror
Only Lee Trager can upload to this branch. If you are Lee Trager please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Lee Trager

Recent revisions

373. By Lee Trager

Configure a static mirror when the CentOS mirrorlist is unavailable.

lp:maas-images installs a number of packages to CentOS 7 to enable MAAS
support. These packages are pulled from the CentOS build server and the CentOS
archives. By default CentOS uses a mirroring system which makes the mirror it
uses non-deterministic. When lp:maas-images detects yum is unable to access the
mirrorlist reconfig yum to use mirrorservice.org which can be whitelisted by
the environment. Once all packages are installed the original yum config is

372. By Scott Moser

ubuntu_info: remove the path that did not require distro-info

At one point we had a functional path that did not require installation
of python-distro-info. At some point that path broke because we were
exporting data in REL2VER was not accounted for in the __RELEASE_DATA.
Specifically missing was 'supported'.

The primary path that was enabled by the hard coded data was testing
with a new distro info before the package was sru'd. To account for
that I've put a comment in the code showing how one can be added.

As a drive-by, this also adds the 'release_date' field to the data

371. By Lee Trager

Fix legacy meph2-util import command

The --max flag was added to meph2-import command. The import code was modified
to expect this flag. meph2-util uses the same code path but a different arg
list which caused it to fail when run. This adds the max flag to the common
args list so it is available to both.

370. By Scott Moser

Fix regression in --proposed flag.

fix build-image and cloudimg-sync after regression in --proposed
change from revno 364.

369. By Scott Moser

meph2/ubuntu_info.py: Fix version comparison by codename

We were filtering out releases based on string comparison of "<" "hardy".
That was fine until artful joined the mix.

Now instead compare based on floating point value.

368. By Scott Moser

curtin/centos7/curtin-hooks: fix missing import of re

use of re module was added in revno 361, but not imported.

367. By Scott Moser

add squashfs into the initramfs on precise.

This just add squashfs to the initramfs that are generated and
only adds it for precise. Other releases get squashfs in initramfs
by default.

366. By Scott Moser

support adding additional repos and packages via environment.

This adds reading of the following environment variables:
 M2E_ADD_REPOS: repos to add to all images before other operations.
 M2E_ADD_PACKAGES: packages to add to all images

This was useful when trying to build images with a new
cloud-initramfs-tools package that had rooturl support.

365. By Scott Moser

When using chroot unshare pid namespace when possible.

This adds a helper 'unshare-pidns' that invokes unshare --pid --fork
if it is available. It will not fail when it is not available though
as it is not expected to be present on trusty and precise.

The reason for this is so any unexpected children of the chroot process
will be killed allowing unmount to succeed.
See LP: #1645680 for example of such issues.

364. By Scott Moser

add '--proposed' option to build-image and meph2-cloudimg-sync.

This just surfaces a --proposed option to the 'meph2-util build-image'
and to meph2-cloudimg-sync commands.

The --proposed defaults to False, but will not overwrite a
'enable_proposed' setting in a --config= argument.

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
Stacked on:
This branch contains Public information 
Everyone can see this information.