mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-22 13:37:10 +00:00
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:
parent
0c5f7b5985
commit
1540d3479f
@ -112,6 +112,14 @@ class LaunchScript:
|
|||||||
s = ""
|
s = ""
|
||||||
|
|
||||||
with open(self.script_template_path, "r") as f:
|
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 += f.read()
|
||||||
|
|
||||||
s += """
|
s += """
|
||||||
|
Loading…
Reference in New Issue
Block a user