Commit 095e35c7 by Guba Sándor Committed by Őry Máté

do not call external command for symlinking

parent d167321e
......@@ -202,18 +202,17 @@ class Disk(object):
raise Exception('Image Base does not exists: %s' % self.get_base())
# Build list of Strings as command parameters
if self.format == 'iso':
cmdline = ['ln',
'-s',
self.get_base(),
self.get_path()]
os.symlink(self.get_base(), self.get_path())
elif self.format == 'raw':
raise NotImplemented()
else:
cmdline = ['qemu-img',
'create',
'-b', self.get_base(),
'-f', self.format,
self.get_path()]
# Call subprocess
subprocess.check_output(cmdline)
# Call subprocess
subprocess.check_output(cmdline)
def merge(self, new_disk):
''' Merging a new_disk from the actual disk and its base.
......
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