forked from oVirt/ovirt-node
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
executable file
·28 lines (23 loc) · 831 Bytes
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
# hacky build script which is basically all the steps from the
# Ovirt wiki instructions - GSS
export OVIRT_NODE_BASE=/root
export OVIRT_CACHE_DIR=~/ovirt-cache
export OVIRT_LOCAL_REPO=file://${OVIRT_CACHE_DIR}/ovirt
export EXTRA_RELEASE=.$USER$foremandiscovery
export LOGFILE=/tmp/build_`date '+%Y%m%d-%H%M'`.log
touch $LOGFILE
if [[ "$1" == "full" ]] ;then
cd $OVIRT_NODE_BASE
cd ovirt-node
./autogen.sh --with-image-minimizer 2>&1 | tee -a $LOGFILE
make publish 2>&1 | tee -a $LOGFILE
fi
cd $OVIRT_NODE_BASE
cd ovirt-node-iso
./autogen.sh --with-recipe=/root/ovirt-node/recipe 2>&1 | tee -a $LOGFILE
REPO="http://yum.theforeman.org/nightly/f19/x86_64" make iso 2>&1 | tee -a $LOGFILE
rm -rf tftpboot
ln -snf ovirt*iso foreman.iso
livecd-iso-to-pxeboot foreman.iso 2>&1 | tee -a $LOGFILE
rm -f ovirt*iso