config tool:add vmname in launch script

add vmname in generated launched script by a comment

Tracked-On: #7410
Signed-off-by: hangliu1 <hang1.liu@linux.intel.com>
This commit is contained in:
hangliu1 2022-05-05 04:40:16 -04:00 committed by acrnsi-robot
parent 0c5f7b5985
commit 1540d3479f
1 changed files with 8 additions and 0 deletions

View File

@ -112,6 +112,14 @@ class LaunchScript:
s = ""
with open(self.script_template_path, "r") as f:
s += f.read(99)
s += "# Launch script for VM name: "
s += f"{self._vm_name}\n"
s += "\n"
with open(self.script_template_path, "r") as f:
f.seek(99,0)
s += f.read()
s += """