create_cluster_hooks=
cluster_created_hooks=
-create_cluster ()
+cluster_create ()
{
# Use $1. If not set then use value from configuration file.
CLUSTER="${1:-${CLUSTER}}"
}
# create base image
-create_base()
+base_create()
{
local NAME="$BASENAME"
local DISK="${VIRTBASE}/${NAME}.${BASE_FORMAT}"
###############################
# boot the base disk
-boot_base() {
+base_boot() {
rm -rf tmp
mkdir -p tmp
case "$t" in
base)
[ $# != 0 ] && usage
- create_base
+ base_create
;;
cluster)
[ $# != 1 ] && usage
- create_cluster "$1"
+ cluster_create "$1"
;;
node)
[ $# != 2 ] && usage
diskimage unmount
;;
bootbase)
- boot_base;
+ base_boot;
;;
*)
usage;