From 684770a220263401a361cc4aa10607abbf1c5d89 Mon Sep 17 00:00:00 2001 From: grossmj Date: Fri, 18 Apr 2025 15:25:50 +0700 Subject: [PATCH] Prettify TPM error message --- gns3server/compute/qemu/qemu_vm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gns3server/compute/qemu/qemu_vm.py b/gns3server/compute/qemu/qemu_vm.py index e94195cb..1a1305c8 100644 --- a/gns3server/compute/qemu/qemu_vm.py +++ b/gns3server/compute/qemu/qemu_vm.py @@ -1200,7 +1200,7 @@ class QemuVM(BaseNode): if "TPM result for CMD_INIT" in qemu_stdout: partition = self._find_partition_for_path(self.project.path) if partition and partition.mountpoint != "/": - qemu_stdout += "\n\nTPM error: the project directory is not on the same partition as the root directory which can be a problem when using AppArmor." \ + qemu_stdout += "\nTPM error: the project directory is not on the same partition as the root directory which can be a problem when using AppArmor.\n" \ "Please try to execute the following commands on the server:\n\n" \ "echo 'owner {}/** rwk,' | sudo tee /etc/apparmor.d/local/usr.bin.swtpm > /dev/null\n" \ "sudo service apparmor restart".format(os.path.dirname(self.project.path))