aboutsummaryrefslogtreecommitdiffstats
path: root/tdfvm-install
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@libreoffice.org>2016-11-02 15:21:05 +0100
committerGuilhem Moulin <guilhem@libreoffice.org>2016-11-02 15:21:05 +0100
commitb70b43279f070df5fd75b7eb247121f46a13195e (patch)
tree83d18203dfd5a2d4aa2a15fc7e9fad60fedc34ec /tdfvm-install
parent32d2b26ed464aec30b9ffc339ffc5c609c69f139 (diff)
xmlstarlet: Omit XML declaration.
To match output of `virsh dumpxml`.
Diffstat (limited to 'tdfvm-install')
-rwxr-xr-xtdfvm-install2
1 files changed, 1 insertions, 1 deletions
diff --git a/tdfvm-install b/tdfvm-install
index 56fd90f..e1091fb 100755
--- a/tdfvm-install
+++ b/tdfvm-install
@@ -292,7 +292,7 @@ virsh -c "$LIBVIRT_URI" create "$VMDIR/$VM_NAME.xml"
# never boot again on CDROM, detach unnecessary devices and remove
# unnecessary controllers
-xmlstarlet edit --inplace \
+xmlstarlet edit --omit-decl --inplace \
--delete "/domain/os/boot[@dev='cdrom']" \
--delete "/domain/devices/disk[@type='file'][@device='cdrom']" \
--delete "/domain/devices/sound" \