From 9da0acc630d604905e6552aba3e8668222473ef6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Wojdy=C5=82a?= Date: Sun, 10 Mar 2024 19:53:18 +0100 Subject: [PATCH] Fix jinja escaping MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Rafał Wojdyła --- developer/debugging/windows-debugging.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/developer/debugging/windows-debugging.md b/developer/debugging/windows-debugging.md index 844273d5..089dfecd 100644 --- a/developer/debugging/windows-debugging.md +++ b/developer/debugging/windows-debugging.md @@ -27,12 +27,12 @@ Things get complicated if you need to perform kernel debugging or troubleshoot p You will need to create a custom libvirt config for the target VM. See [the documentation](https://dev.qubes-os.org/projects/core-admin/en/latest/libvirt.html) for overview of how libvirt templates work in Qubes. The following assumes the target VM is named `target-vm`. - Edit `/usr/share/qubes/templates/libvirt/xen.xml` to prepare our custom config to override just the NIC part of the global template: - - add `{{ '{% block network %}' }}` before `{{ '{% if vm.netvm %}' }}` - - add `{{ '{% endblock %}' }}` after the matching `{{ '{% endif %}' }}` + - add `{% raw %}{% block network %}{% endraw %}` before `{% raw %}{% if vm.netvm %}{% endraw %}` + - add `{% raw %}{% endblock %}{% endraw %}` after the matching `{% raw %}{% endif %}{% endraw %}` - Copy `/usr/share/qubes/templates/libvirt/devices/net.xml` to `/etc/qubes/templates/libvirt/xen/by-name/target-vm.xml`. - Add `` to the `` section. -- Enclose everything within `{{ '{% block network %}' }}` + `{{ '{% endblock %}' }}`. -- Add `{{ "{% extends 'libvirt/xen.xml' %}" }}` at the start. +- Enclose everything within `{% raw %}{% block network %}{% endraw %}` + `{% raw %}{% endblock %}{% endraw %}`. +- Add `{% raw %}{% extends 'libvirt/xen.xml' %}{% endraw %}` at the start. - The final `target-vm.xml` should look something like this: ~~~