xci: scripts: vm: Use LVM backend if available 49/51449/2
authorMarkos Chandras <mchandras@suse.de>
Thu, 1 Feb 2018 09:49:42 +0000 (09:49 +0000)
committerMarkos Chandras <mchandras@suse.de>
Wed, 7 Feb 2018 06:57:24 +0000 (06:57 +0000)
commit30c2548fddba72eded8a1e95c0744d098e029ec8
tree95547c4174013fc04b8f3ce909d3d00e85201bd8
parent5fefd608e98bf0e9fdf8483414603a0108b9fadb
xci: scripts: vm: Use LVM backend if available

The CI nodes come with a big secondary mechanical disk which can be
attached directly to the clean VM. As such, we split the disk into one
logical volume per distribution and flush the qcow2 image to it before
attaching it to the VM. If the XCI volume group is not available, then
we revert back to using a file-based storage backend. Finally, we hide
stdout/stderr from the package installation process to minimize the
script output.

Change-Id: I11ea82899c411f8a4168e5f23cbbd8187cc891df
Signed-off-by: Markos Chandras <mchandras@suse.de>
xci/scripts/vm/start-new-vm.sh