dom0: Copy default template kernel to StandaloneVM dir (#333)

Just prepare kernel for qvm-set -s <vmname> kernel none
This commit is contained in:
Marek Marczykowski 2011-09-01 15:01:37 +02:00
parent ac917ef1d8
commit 11da1633d3

View File

@ -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)