lp:~kevinoid/cloud-utils/fix-growpart-disk-symlink

Created by Kevin Locke and last modified
Get this branch:
bzr branch lp:~kevinoid/cloud-utils/fix-growpart-disk-symlink
Only Kevin Locke can upload to this branch. If you are Kevin Locke please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Kevin Locke
Project:
cloud-utils
Status:
Merged

Recent revisions

323. By Kevin Locke

Disks can be referred to via symlink aliases, such as the ones in
/dev/disk/by-id and /dev/disk/by-path. These alias paths can have
different partition naming behavior than the un-aliased path. For
example, both of the above aliases add -partX to the name for partition
X, rather than just X. Previously this would cause growpart to fail
with the error:

    failed to get start and end for ${dpart} in ${DISK}

Because the awk expression would not match the partition path. This
commit fixes the error by resolving symlink device paths before use.

322. By Scott Moser

update changelog

321. By Scott Moser

mount-image-callback: Drop support for mounting lxd containers.

The 'lxd:' support in mount-image-callback only worked in some cases,
and then stopped working in all cases with lxc 2.17.

This drops the lxd support, but leaves in the 'mchroot' support which
came with it.

320. By Scott Moser

update changelog

319. By Scott Moser

mount-image-callback: run blockdev and udevadm settle on nbd devices.

When we connect nbd devices, ensure that the kernel re-reads the partition
table information. This ensures that the partition devices (nbd0p1, nbd0p2)
are correct when used later.

Also required then is a udevadm settle.

On xenial, the blockdev is needed, on newer releases some udev magic or
systemd handles it.

318. By Scott Moser

test/test-mic: better debug info

317. By Scott Moser

mount-image-callback: more helpful debug messages.

316. By Scott Moser

update changelog

315. By Scott Moser

mount-image-callback: fix nbd mounting with rw.

mount was getting called with -o '' due to bad variable name

314. By Scott Moser

tools/make-dist-tarball: do not include .bzr in upstream tarball

using tar cf file.tar.gz directory/ --exclude directory/.bzr
was not correctly excluding .bzr.

the --exclude needs to be before 'directory/'.

It is is just as easy and more straight forward to just remove the .bzr
dir in our pristine directory.

Branch metadata

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

Subscribers