From 813c4903ad9ead179d5f2aeaac8b7a551158a002 Mon Sep 17 00:00:00 2001 From: Quentin Smith Date: Mon, 27 Dec 2010 01:48:19 -0500 Subject: [PATCH] Detect debian-installer-based autoinstalls. --- debian/changelog | 6 ++++++ host/usr/sbin/invirt-listvms | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 6a92571..209dc85 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +invirt-remote (0.4.9) unstable; urgency=low + + * Detect debian-installer-based autoinstalls. + + -- Quentin Smith Mon, 27 Dec 2010 01:47:58 -0500 + invirt-remote (0.4.8) unstable; urgency=low * Allow "preseed" as a valid installation option. diff --git a/host/usr/sbin/invirt-listvms b/host/usr/sbin/invirt-listvms index d71d6eb..9c22f59 100755 --- a/host/usr/sbin/invirt-listvms +++ b/host/usr/sbin/invirt-listvms @@ -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__': -- 1.7.9.5