Skip to contentSkip to conversation

Add the ability to use *.xml as unattended_install file for kvm.

PATCH New sshang 1 participant 1 message Jan 7, 2010 KVM

lore
Share & tools
lore

sshang

author
#0 lore raw

PATCH 1/1 Add the ability to use *.xml as unattended_install file for kvm.

---
 client/tests/kvm/scripts/unattended.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
client/tests/kvm/scripts/unattended.py +2 -0
index 562d317..ee20b60 100755
@@ -91,6 +91,8 @@ class UnattendedInstall(object):
             shutil.copyfile(setup_file_path, setup_file_dest)
         elif self.unattended_file.endswith('.ks'):
             dest_fname = 'ks.cfg'
+        elif self.unattended_file.endswith('.xml'):
+            dest_fname = "autounattend.xml"
 
         dest = os.path.join(self.floppy_mount, dest_fname)
         shutil.copyfile(self.unattended_file, dest)
Signature · 1 line
1.5.3.6