mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
vhd-util check doesn't work for some corrupted vhd file, use vhd-util read instead
This commit is contained in:
parent
c0db80fa1d
commit
76e79851a0
@ -198,7 +198,7 @@ if [ ${tmpltname%.vhd} != ${tmpltname} ]
|
||||
then
|
||||
if which vhd-util &>/dev/null
|
||||
then
|
||||
vhd-util check -n ${tmpltimg2} > /dev/null
|
||||
vhd-util read -p -n ${tmpltimg2} > /dev/null
|
||||
rollback_if_needed $tmpltfs $? "vhd check of $tmpltimg2 failed\n"
|
||||
vhd-util set -n ${tmpltimg2} -f "hidden" -v "0" > /dev/null
|
||||
rollback_if_needed $tmpltfs $? "vhd remove $tmpltimg2 hidden failed\n"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user