exit $1
}
+orig_args=("$@")
new_disk=false
temp=$(getopt -l help hnr "$@") || usage 1
eval set -- "$temp"
esac
done
-
# change this to test different disk counts. 1 and > 1 should be the only
# important things to test.
disk_count=1
rm -rf /tmp/faifreeze
mkdir -p /a/tmp
cp -ar /a/bin/fai /tmp/faifreeze
- exec /tmp/faifreeze/${BASH_SOURCE##*/} "$@"
+ exec /tmp/faifreeze/${BASH_SOURCE##*/} "${orig_args[@]}"
fi
cd $script_dir
disk_arg+=("--disk path=$f")
if $new_disk || [[ ! -e $f ]]; then
s rm -f $f
- e s qemu-img create -o preallocation=metadata -f qcow2 $f 20G
+ e s qemu-img create -o preallocation=metadata -f qcow2 $f 50G
fi
done
dnsmasq_restart=false
v cedit /etc/hosts <<EOF || dnsmasq_restart=true
192.168.1.1 wrt
-192.168.1.2 treetowl mail.iankelling.org $HOME_DOMAIN faiserver
+192.168.1.2 treetowl $HOME_DOMAIN faiserver
192.168.1.3 frodo
192.168.1.4 htpc
192.168.1.5 x2