Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Ravada-Mirror
Commits
6d2d9a0d
Commit
6d2d9a0d
authored
Jan 20, 2021
by
frankiejol
Browse files
fix(volumes): follow links to check format
issue #1478
parent
0d1fba7d
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/Ravada/Volume.pm
View file @
6d2d9a0d
...
...
@@ -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
';
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment