lp:~smoser/curtin/trunk.dirty-disks-in-early-command

Created by Scott Moser and last modified
Get this branch:
bzr branch lp:~smoser/curtin/trunk.dirty-disks-in-early-command
Only Scott Moser can upload to this branch. If you are Scott Moser please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Scott Moser
Project:
curtin
Status:
Merged

Recent revisions

485. By Scott Moser

In bcache test, run block-meta once inside the early_commands.

This runs 'curtin block-meta' from the curtin install's early_commands.
So essentially, the early command partition the disks, put a filesystem
on them, and then the install continues and those are all wiped away.

It functions as a somewhat simple way to get "dirty" disks in place, and
in fact actually catches bug 1676991 (bcache race condition) if we
leave the '-smp 2' modification in launch.

484. By Scott Moser

add recursive flag to do_umount, add --umount to block-meta

This adds a 'recursive' argument to util.do_umount, and utilizes
it from install.py. The basic idea of do_umount with recursive
is to walk through /proc/mounts in reverse and unmount anything
mounted under the provided mountpoint (or the mountpoint itself).

Also added here is use of that function from block-meta command.
We add a flag --umount to unmount filesystems at its end.

483. By Scott Moser

Make systems with root on bcache use root=UUID=.

Systems with root on bcache would end up booting with root=/dev/bcache0
(or bcache1). Bcache device names are not guaranteed, so this could
cause issues.

The fix is to invoke 'udevadm trigger' after creating a filesystem on
a bcache device. That will populate /dev/disk/by-uuid, which will
cause grub to properly decide to boot by root=UUID=.

482. By Nish Aravamudan

Fix iscsi disks that have a ':' in the target name.

The regular expression we have now incorrectly allows ':' in IPv4
addresses and hostnames, rather than only IPv6 addresses. This ends up as
an inability to use ':' in target names (common and supported), because we
greedily consume the prefix (host) and suffix (target).

In order to fix this, we need to require that IPv6 addresses are enclosed
in [], so we can disambiguate them from hostnames and IPv4 addresses which
have different validation.

Fix the regex and add a unittest for this case.

481. By Joshua Powers

tests: re-enable ZestyTestMdadmBcache.

This was disabled due to bug 1667078 which is now fixed.

480. By Scott Moser

curthooks: fix pylint reported error when using ubuntu_core_curthooks.

The previous commit added code that called ubuntu_core curthooks and
then sys.exit() with its return. It would never return a value,
so this is in the end the same.

479. By Ryan Harper

Add support for installing Ubuntu-Core 16 images

UC16 images are compressed-xz raw images which need to be written
directly to disk. Introduce new source types dd-{xz,gz,bz2,raw}
and pass them to block_meta write_image_to_disk. Update block_meta's
find_root_dev to look for UC16 specific paths to identify the root
partition.

UC16 images are generally not modifiable and do not contain dpkg/apt,
therefore curtin handles curthooks on UC16 differently. Add a new
top-level 'cloudconfig' key which is modeled after write_files to be
used by maas to inject cloud-init into a UC16 image; curtin appends
these files out in the "writable" partition of UC16 which will be
mounted up on top of the root partition. Add an initial vmtest
(disabled by default) as UC16 images are not yet available via maas
streams data.

478. By Andres Rodriguez

Add 'STORAGE_CONFIG_V1_DD' to the feature list.

Adds the 'STORAGE_CONFIG_V1_DD' variable to represent that selection of
target disk can be influenced via storage config when installing a dd
image.

477. By Scott Moser

flake8: fix flake8 issues with previous merge.

Simply fix the flake8 issues with the previous commit.

476. By Andres Rodriguez

Support selection of target disk for dd images install via storage config.

If storage config is provided to a dd image installation, and one of the
disks listed includes the 'grub_drive', select that as the target for dd.

Branch metadata

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

Subscribers