summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorNeil Williams <codehelp@debian.org>2015-11-05 16:59:19 +0000
committerNeil Williams <codehelp@debian.org>2015-11-05 16:59:19 +0000
commit712731075f2d514f4c51261be8e3afaa278d90be (patch)
tree9681809f0029c1f7bd161c0b20d478a75436cf34 /bin
parent261af90a7aad0a72c776235b462fa8d1bf312679 (diff)
downloadvmdebootstrap-712731075f2d514f4c51261be8e3afaa278d90be.tar.gz
Only implement serial-console on Wheezy.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/vmdebootstrap7
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/vmdebootstrap b/bin/vmdebootstrap
index 35287ce..0176e0d 100755
--- a/bin/vmdebootstrap
+++ b/bin/vmdebootstrap
@@ -256,6 +256,7 @@ class VmDebootstrap(cliapp.Application): # pylint: disable=too-many-public-meth
extlinux = self.handlers[ExtLinux.name]
base = self.handlers[Base.name]
uefi = self.handlers[Uefi.name]
+ distro = self.handlers[Codenames.name]
if self.settings['use-uefi']:
bootdir = self.bootdir
logging.debug(
@@ -274,7 +275,11 @@ class VmDebootstrap(cliapp.Application): # pylint: disable=too-many-public-meth
extlinux.install_extlinux(rootdev, rootdir)
elif self.settings['extlinux']:
extlinux.install_extlinux(rootdev, rootdir)
- base.append_serial_console(rootdir)
+ # only append for wheezy (which became oldstable on 2015.04.25)
+ if distro.was_oldstable(datetime.date(2015, 4, 26)):
+ base.append_serial_console(rootdir)
+ else:
+ base.message("Skipping setting serial console- wheezy only.")
self.optimize_image(rootdir)
def start_ops(self):