diff --git a/dom0/qvm-core/qubes.py b/dom0/qvm-core/qubes.py index ab4c594e..26f32f46 100755 --- a/dom0/qvm-core/qubes.py +++ b/dom0/qvm-core/qubes.py @@ -1137,6 +1137,13 @@ class QubesTemplateVm(QubesVm): if retcode != 0: raise IOError ("Error while copying {0} to {1}".\ format(self.clean_volatile_img, self.volatile_img)) + + if verbose: + print "--> Copying the template's DispVM prerun script..." + retcode = subprocess.call (["cp", src_template_vm.dir_path + '/dispvm-prerun.sh', self.dir_path + '/dispvm-prerun.sh']) + if retcode != 0: + raise IOError ("Error while copying DispVM prerun script") + if verbose: print "--> Copying the template's appmenus templates dir:\n{0} ==>\n{1}".\ format(src_template_vm.appmenus_templates_dir, self.appmenus_templates_dir) diff --git a/dom0/restore/qubes_update_dispvm_savefile_with_progress.sh b/dom0/restore/qubes_update_dispvm_savefile_with_progress.sh index 74155ec5..aaaa5578 100755 --- a/dom0/restore/qubes_update_dispvm_savefile_with_progress.sh +++ b/dom0/restore/qubes_update_dispvm_savefile_with_progress.sh @@ -3,7 +3,7 @@ trap "exit 1" USR1 TERM export SHELL_PID=$$ ( echo "1" - if ! qvm-create-default-dvm --default-template --default-script >/var/run/qubes/qvm-create-default-dvm.stdout /var/run/qubes/qvm-create-default-dvm.stdout