=== modified file 'tools/partition2disk' --- old/tools/partition2disk 2009-12-20 05:40:03 +0000 +++ new/tools/partition2disk 2010-05-19 20:57:20 +0000 @@ -111,6 +111,14 @@ my $magic=`$FILE $partition`; chomp($magic); + +# Exclude unsupported types +if ($magic =~ /Qemu Image, Format: Qcow/) { + # Images of Qemu/Qcow format are not supported for repartitioning. Skipping. + do_exit(0); +} + +# Continue processing assuming image is a RAW/DD image. if (!($magic =~ /partition [0-99]/) && !($magic =~ /Qcow/)) { # if not a disk image already # create the disk image