Detect debian-installer-based autoinstalls.
authorQuentin Smith <quentin@mit.edu>
Mon, 27 Dec 2010 06:48:19 +0000 (01:48 -0500)
committerQuentin Smith <quentin@mit.edu>
Mon, 27 Dec 2010 07:03:31 +0000 (02:03 -0500)
debian/changelog
host/usr/sbin/invirt-listvms

index 6a92571..209dc85 100644 (file)
@@ -1,3 +1,9 @@
+invirt-remote (0.4.9) unstable; urgency=low
+
+  * Detect debian-installer-based autoinstalls.
+
+ -- Quentin Smith <quentin@mit.edu>  Mon, 27 Dec 2010 01:47:58 -0500
+
 invirt-remote (0.4.8) unstable; urgency=low
 
   * Allow "preseed" as a valid installation option.
index d71d6eb..9c22f59 100755 (executable)
@@ -42,7 +42,9 @@ def get_dom(domid):
             data['cdrom'] = dev_params
         elif dev_type == 'disk' and dev_params == '/dev/xenvg/s_install_hda':
             data['autoinstall'] = True
-    
+    if 'auto=true' in xsc.read('', '%s/image/cmdline' % data['vm']):
+        data['autoinstall'] = True
+
     return name, data
 
 if __name__ == '__main__':