From: Christian Seiler <christian@iwakd.de>
Date: Mon, 05 Oct 2015 13:05:26 +0200
Subject: [PATCH] Don't create /etc/inittab

If vmdebootstrap creates /etc/inittab (in case sysvinit is not in the
initial package list), don't create it - because if sysvinit-core is
installed afterwards, this will break the boot process.

See Debian Bug #800910

---

diff a/vmdebootstrap b/vmdebootstrap
--- a/vmdebootstrap
+++ b/vmdebootstrap
@@ -828,6 +828,10 @@ class VmDebootstrap(cliapp.Application):
             serial_command = self.settings['serial-console-command']
             logging.debug('adding getty to serial console')
             inittab = os.path.join(rootdir, 'etc/inittab')
+            # Don't create inittab, this will break boots if sysvinit-core
+            # is installed later on, see Debian Bug #800910.
+            if not os.path.exists(inittab):
+                return
             # to autologin, serial_command can contain '-a root'
             with open(inittab, 'a') as f:
                 f.write('\nS0:23:respawn:%s\n' % serial_command)
