[lib] nbd: Explicitly map partitions 83/67283/2
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Mon, 18 Mar 2019 15:11:50 +0000 (16:11 +0100)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Mon, 18 Mar 2019 15:44:52 +0000 (16:44 +0100)
commit36e16f10055c74b46bbc25b85f9adf60b546b136
treed771b3c67e9e406a4ab1d63b226413ca89069acb
parentb84ea4cd4cce6db24a2bc7c392e3be0e7dc4ac78
[lib] nbd: Explicitly map partitions

Certain kernels (e.g. 4.4.0-101+ in Ubuntu) no longer automatically
ack the partition table update after `kpartx -a /dev/nbdX`, see [1].

To avoid another dependency on `parted` packages, use `partx` from
`util-linux`, which is already installed as a dependency of e2fsprogs.

[1] https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1743026

Change-Id: Ibd993fe210c1a11814e89a66759568d4d117d613
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
mcp/scripts/lib_jump_deploy.sh