ironic-python-agent/imagebuild/coreos/full_trusty_build.sh
Lucas Alvares Gomes 6a8df9d1d6 Image building support for fedora hosts
This patch makes the full_trusty_build.sh script to work on Fedora and
install the dependencies needed to build the image.

Change-Id: I13934f0d9967a1c692446ff0c0de037021caa461
2015-02-10 16:48:41 +00:00

20 lines
601 B
Bash
Executable File

#!/bin/bash -xe
#
# From a base-trusty node, this should build a CoreOS IPA image
# suitable for use in testing or production.
#
if [ -x "/usr/bin/apt-get" ]; then
sudo -E apt-get update
sudo -E apt-get install -y docker.io
elif [ -x "/usr/bin/yum" ]; then
sudo -E yum install -y docker-io gpg
else
echo "No supported package manager installed on system. Supported: apt, yum"
exit 1
fi
imagebuild/coreos/build_coreos_image.sh
BUILD_DIR=imagebuild/coreos/UPLOAD
tar czf ipa-coreos.tar.gz $BUILD_DIR/coreos_production_pxe_image-oem.cpio.gz $BUILD_DIR/coreos_production_pxe.vmlinuz