mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-03-10 12:58:27 +03:00
Add check for QEMU saved image magic (Soren Hansen)
This commit is contained in:
parent
3642ae9e72
commit
4273563b3b
@ -326,7 +326,7 @@ class vmmManager(gobject.GObject):
|
||||
try:
|
||||
f = open(file, "r")
|
||||
magic = f.read(16)
|
||||
if magic != "LinuxGuestRecord":
|
||||
if magic != "LinuxGuestRecord" and magic != "LibvirtQemudSave":
|
||||
return False
|
||||
return True
|
||||
except:
|
||||
|
Loading…
x
Reference in New Issue
Block a user