Removing log statements from create_disk_image
This commit is contained in:
parent
d5ecfe9335
commit
638600b25e
1 changed files with 0 additions and 10 deletions
|
|
@ -56,10 +56,7 @@ create_disk_image() {
|
||||||
local disk_path="$vm_path/disk.qcow2"
|
local disk_path="$vm_path/disk.qcow2"
|
||||||
|
|
||||||
if [[ ! -f "$disk_path" ]]; then
|
if [[ ! -f "$disk_path" ]]; then
|
||||||
# log_info "Creating disk image for $vm_name..."
|
|
||||||
qemu-img create -f qcow2 "$disk_path" "$DISK_SIZE"
|
qemu-img create -f qcow2 "$disk_path" "$DISK_SIZE"
|
||||||
else
|
|
||||||
log_warn "Disk image already exists for $vm_name"
|
|
||||||
fi
|
fi
|
||||||
echo "$disk_path"
|
echo "$disk_path"
|
||||||
}
|
}
|
||||||
|
|
@ -147,13 +144,6 @@ main() {
|
||||||
local controlplane_mac=$(generate_mac "$CONTROLPLANE_NAME")
|
local controlplane_mac=$(generate_mac "$CONTROLPLANE_NAME")
|
||||||
local controlplane_script=$(create_vm_script "$controlplane_path" "$CONTROLPLANE_NAME" "$controlplane_mac" "$iso_path" "$controlplane_disk")
|
local controlplane_script=$(create_vm_script "$controlplane_path" "$CONTROLPLANE_NAME" "$controlplane_mac" "$iso_path" "$controlplane_disk")
|
||||||
create_service_file "$controlplane_path" "$CONTROLPLANE_NAME" "$controlplane_script"
|
create_service_file "$controlplane_path" "$CONTROLPLANE_NAME" "$controlplane_script"
|
||||||
|
|
||||||
echo "Resulting variables:"
|
|
||||||
echo "CONTROLPLANE_PATH=$controlplane_path"
|
|
||||||
echo "CONTROLPLANE_DISK=$controlplane_disk"
|
|
||||||
echo "CONTROLPLANE_MAC=$controlplane_mac"
|
|
||||||
echo "CONTROLPLANE_SCRIPT=$controlplane_script"
|
|
||||||
|
|
||||||
|
|
||||||
local manage_script="$VM_DIR/manage-vm.sh"
|
local manage_script="$VM_DIR/manage-vm.sh"
|
||||||
cat > "$manage_script" << 'EOF'
|
cat > "$manage_script" << 'EOF'
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue