From 11da1633d38a873dab0b1686d336dcfd70d03c0f Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Thu, 1 Sep 2011 15:01:37 +0200 Subject: [PATCH] dom0: Copy default template kernel to StandaloneVM dir (#333) Just prepare kernel for qvm-set -s kernel none --- 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 761e6199..0400d3f3 100755 --- a/dom0/qvm-core/qubes.py +++ b/dom0/qvm-core/qubes.py @@ -762,6 +762,13 @@ class QubesVm(object): raise IOError ("Error while copying {0} to {1}".\ format(template_root, self.root_img)) + kernels_dir = source_template.kernels_dir + if verbose: + print "--> Copying the kernel (set kernel \"none\" to use it): {0}".\ + format(kernels_dir) + + shutil.copytree(kernels_dir, self.dir_path + '/kernels') + # Create volatile.img self.reset_volatile_storage(source_template = source_template, verbose=verbose)