Commit 6d2d9a0d authored by frankiejol's avatar frankiejol
Browse files

fix(volumes): follow links to check format

issue #1478
parent 0d1fba7d
......@@ -74,7 +74,7 @@ sub _type_from_file($file, $vm) {
return 'ISO' if $file =~ /\.iso$/i;
return 'Void' if $file =~ /void$/i;
my ($out, $err) = $vm->run_command("file",$file);
my ($out, $err) = $vm->run_command("file","-L",$file);
return 'QCOW2' if $out =~ /QEMU QCOW/;
return 'RAW';
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment