adding changes to Readme regarding dependencies and try catch ps and diskpart
This commit is contained in:
@@ -6,7 +6,7 @@ Baremetal Servers. This is made possible by injecting user provided drivers usin
|
|||||||
Creates a Image file, Includes cloudbase-init package by default.
|
Creates a Image file, Includes cloudbase-init package by default.
|
||||||
User can create image by adding custom drivers, VirIO Drivers by providing suitable ISO or inf files. Enable Roles like Hyperv , TFTP etc., Use below formats to run script.
|
User can create image by adding custom drivers, VirIO Drivers by providing suitable ISO or inf files. Enable Roles like Hyperv , TFTP etc., Use below formats to run script.
|
||||||
|
|
||||||
Runs on Windows 8, 8.1 and 2012 R2
|
Runs on Windows 7,8, 8.1 and 2012 R2 ( To run this tool on Windows 7 it needs WAIK to be installed inorder to use dism /apply-image )
|
||||||
|
|
||||||
Requires Powershell 3.0 or above and wim file from ISO Source folder. ISO is not required. Only Wim file is enough to generate and apply wim to vhd.
|
Requires Powershell 3.0 or above and wim file from ISO Source folder. ISO is not required. Only Wim file is enough to generate and apply wim to vhd.
|
||||||
|
|
||||||
|
@@ -13,6 +13,7 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Creates a Image file, Includes cloudbase-init package by default.
|
# Creates a Image file, Includes cloudbase-init package by default.
|
||||||
# User can create image by adding custom drivers, VirIO Drivers by providing suitable ISO or inf files. Enable Roles like Hyperv , TFTP etc., Use below formats to run script.
|
# User can create image by adding custom drivers, VirIO Drivers by providing suitable ISO or inf files. Enable Roles like Hyperv , TFTP etc., Use below formats to run script.
|
||||||
|
|
||||||
@@ -343,22 +344,23 @@ foreach($p in $testpaths){
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
#try {
|
try {
|
||||||
# Createvhd | Out-File
|
if($disklayout){
|
||||||
# PscreatePartition
|
$Errorvalue = 1
|
||||||
|
}else{
|
||||||
|
Createvhd
|
||||||
|
PscreatePartition
|
||||||
|
}
|
||||||
|
|
||||||
#} catch{
|
} catch{
|
||||||
# Write-W2VInfo "Could not run through hyperv module will use diskpart..."
|
Write-W2VInfo "Could not run through hyperv module will use diskpart..."
|
||||||
# $Errorvalue = 1
|
$Errorvalue = 1
|
||||||
|
|
||||||
#}
|
}
|
||||||
|
|
||||||
#if($Errorvalue){
|
if($Errorvalue){
|
||||||
|
CreateThrwDiskpart
|
||||||
CreateThrwDiskpart
|
}
|
||||||
|
|
||||||
|
|
||||||
#}
|
|
||||||
|
|
||||||
|
|
||||||
CreateBootfiles
|
CreateBootfiles
|
||||||
|
Reference in New Issue
Block a user