diff --git a/Host/Bootstrap-Hyper-V.ps1 b/Host/Bootstrap-Hyper-V.ps1 index 4a5dc5d..8a8512f 100644 --- a/Host/Bootstrap-Hyper-V.ps1 +++ b/Host/Bootstrap-Hyper-V.ps1 @@ -5,28 +5,28 @@ echo "GPLv3" ### Define variables +$base_cli = Read-Host "CLI base disk name with extension?" +$base_srv = Read-Host "SRV base disk name with extension?" +$base_vhd_path = "${vhd_path}Base\" $scripts_path = Read-host "Scripts path with trailling slash?" -$vhd_path = Read-host "VHD path with trailling slash?" -$vm_path = Read-Host "VM path with trailling slash?" +$source_cli_name = Read-Host "CLI source disk name with extension?" $source_path = Read-host "Actual source path with trailling slash?" $source_srv_name = Read-Host "SRV source disk name with extension?" -$source_cli_name = Read-Host "CLI source disk name with extension?" -$base_srv = Read-Host "SRV base disk name with extension?" -$base_cli = Read-Host "CLI base disk name with extension?" -$base_vhd_path = "${vhd_path}Base\" +$vhd_path = Read-host "VHD path with trailling slash?" +$vm_path = Read-Host "VM path with trailling slash?" ### Store them as ENV vars +$env:BASE_CLI_NAME = ${base_cli} +$env:BASE_SRV_NAME = ${base_srv} +$env:BASE_VHD_PATH = ${base_vhd_path} +$env:FULL_PATH = ${full_path} $env:SCRIPTS_PATH = ${scripts_path} -$env:VHD_PATH = ${vhd_path} -$env:VM_PATH = ${vm_path} +$env:SOURCE_CLI_NAME = ${source_cli_name} $env:SOURCE_PATH = ${source_path} $env:SOURCE_SRV_NAME = ${source_srv_name} -$env:SOURCE_CLI_NAME = ${source_cli_name} -$env:BASE_SRV_NAME = ${base_srv} -$env:BASE_CLI_NAME = ${base_cli} -$env:FULL_PATH = ${full_path} -$env:BASE_VHD_PATH = ${base_vhd_path} +$env:VM_PATH = ${vm_path} +$env:VHD_PATH = ${vhd_path} ### Let the fuckery begins!