From 46190b9d829ad93198001c71cbd5867a6c5a6d37 Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Wed, 23 Mar 2011 09:59:59 +0100 Subject: [PATCH] Copy kernel for standalone VM --- dom0/qvm-core/qubes.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dom0/qvm-core/qubes.py b/dom0/qvm-core/qubes.py index 0d9f88df..442d50cd 100755 --- a/dom0/qvm-core/qubes.py +++ b/dom0/qvm-core/qubes.py @@ -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()