adding changes to Readme regarding dependencies and try catch ps and diskpart

This commit is contained in:
lokesh 2014-08-13 11:22:15 +05:30
parent 2b82b3c7f3
commit f0df1fff50
2 changed files with 16 additions and 14 deletions

View File

@ -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.
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.

View File

@ -13,6 +13,7 @@
# under the License.
# 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.
@ -343,22 +344,23 @@ foreach($p in $testpaths){
#try {
# Createvhd | Out-File
# PscreatePartition
try {
if($disklayout){
$Errorvalue = 1
}else{
Createvhd
PscreatePartition
}
#} catch{
# Write-W2VInfo "Could not run through hyperv module will use diskpart..."
# $Errorvalue = 1
} catch{
Write-W2VInfo "Could not run through hyperv module will use diskpart..."
$Errorvalue = 1
#}
}
#if($Errorvalue){
CreateThrwDiskpart
#}
if($Errorvalue){
CreateThrwDiskpart
}
CreateBootfiles