Description: Don't try to use linux-image-586 on modern i386 systems
 .
 vmdebootstrap (1.7-1+nmu2) unstable; urgency=medium
 .
   * Don't try to use linux-image-586 on modern i386 systems.
     Closes: #869714.
 This is blocking i386 live builds on buster.
Author: Steve McIntyre <93sam@debian.org>
Bug-Debian: https://bugs.debian.org/869714

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

--- vmdebootstrap-1.7.orig/vmdebootstrap/codenames.py
+++ vmdebootstrap-1.7/vmdebootstrap/codenames.py
@@ -65,11 +65,14 @@ class Codenames(Base):
         if self.settings['no-kernel'] or self.settings['kernel-package']:
             return packages
         if self.settings['arch'] == 'i386':
-            # wheezy (which became oldstable on 04/25/2015) used '486'
+            # wheezy (which became oldstable on 2015-04-25) used '486'
             if self.was_oldstable(datetime.date(2015, 4, 26)):
                 kernel_arch = '486'
-            else:
+            # jessie (which became oldstable on 2017-06-17) used '586'
+            elif self.was_oldstable(datetime.date(2017, 6, 18)):
                 kernel_arch = '586'
+            else:
+                kernel_arch = '686'
         elif self.settings['arch'] == 'armhf':
             kernel_arch = 'armmp'
         elif self.settings['arch'] == 'ppc64el':
