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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: sshang <sshang@xxxxxxxxxx>
---
 client/tests/kvm/scripts/unattended.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/client/tests/kvm/scripts/unattended.py b/client/tests/kvm/scripts/unattended.py
index 562d317..ee20b60 100755
--- a/client/tests/kvm/scripts/unattended.py
+++ b/client/tests/kvm/scripts/unattended.py
@@ -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)
-- 
1.5.3.6

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux