caa1cffc0a
Builds ephemeral ISO and target host images. Also replaces isogen (iso-builder) with a single ansible-driven build tool for both types of airship images used: ephemeral ISO as well as target QCOW2 images deployed to base nodes. Change-Id: I6d0368de771869e4e645a03d8a20f470b34602ab
16 lines
332 B
Bash
Executable File
16 lines
332 B
Bash
Executable File
#!/bin/bash
|
|
|
|
install_pkg(){
|
|
dpkg -l $1 >& /dev/null || sudo -E apt-get -y install $1
|
|
}
|
|
|
|
install_pkg qemu-kvm
|
|
install_pkg virtinst
|
|
install_pkg libvirt-bin
|
|
install_pkg cloud-image-utils
|
|
install_pkg ovmf
|
|
install_pkg efivar
|
|
type docker >& /dev/null || install_pkg docker.io
|
|
# required for building UEFI image
|
|
sudo -E modprobe efivars
|