Directly use STRONGSWANHOSTS in build-guestimages
Drop support for building guests specified on the command line; creating all images unconditionally is very fast now thanks to qcow2.
This commit is contained in:
committed by
Tobias Brunner
parent
12f1ff3a0e
commit
23382d2e00
@@ -32,17 +32,11 @@ mkdir -p $BUILDDIR
|
|||||||
mkdir -p $LOOPDIR
|
mkdir -p $LOOPDIR
|
||||||
mkdir -p $GUESTIMGDIR
|
mkdir -p $GUESTIMGDIR
|
||||||
|
|
||||||
if [ "$#" -eq 0 ]; then
|
|
||||||
HOSTS=$STRONGSWANHOSTS
|
|
||||||
else
|
|
||||||
HOSTS=$*
|
|
||||||
fi
|
|
||||||
|
|
||||||
# just to be sure
|
# just to be sure
|
||||||
do_on_exit qemu-nbd -d $NBDEV
|
do_on_exit qemu-nbd -d $NBDEV
|
||||||
do_on_exit umount $LOOPDIR
|
do_on_exit umount $LOOPDIR
|
||||||
|
|
||||||
for host in $HOSTS
|
for host in $STRONGSWANHOSTS
|
||||||
do
|
do
|
||||||
log_action "Creating guest image for $host"
|
log_action "Creating guest image for $host"
|
||||||
execute "qemu-img create -b $ROOTIMG -f $IMGEXT $GUESTIMGDIR/$host.$IMGEXT" 0
|
execute "qemu-img create -b $ROOTIMG -f $IMGEXT $GUESTIMGDIR/$host.$IMGEXT" 0
|
||||||
|
|||||||
Reference in New Issue
Block a user