Copy kernel for standalone VM

This commit is contained in:
Marek Marczykowski 2011-03-23 09:59:59 +01:00
parent a5a43cdbc7
commit 46190b9d82

View File

@ -1044,6 +1044,13 @@ class QubesCowVm(QubesVm):
raise IOError ("Error while copying {0} to {1}".\
format(template_root, self.root_img))
kernels_dir = self.dir_path + '/' + default_kernels_subdir
if verbose:
print "--> Copying the template's kernel dir: {0}".\
format(self.template_vm.kernels_dir)
shutil.copytree (self.template_vm.kernels_dir, kernels_dir)
# Create volatile.img
self.reset_volatile_storage()