Commit 02f8e3c3 by Guba Sándor

add more format to check_type

parent 0377dff6
...@@ -128,7 +128,8 @@ class Disk(object): ...@@ -128,7 +128,8 @@ class Disk(object):
Set the proper type for valid images.""" Set the proper type for valid images."""
format_map = [ format_map = [
("qcow", "qcow2-norm"), ("qcow", "qcow2-norm"),
("iso", "iso") ("iso", "iso"),
("x86 boot sector", "iso")
] ]
with magic.Magic() as m: with magic.Magic() as m:
ftype = m.id_filename(self.get_path()) ftype = m.id_filename(self.get_path())
......
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 sign in to comment