diff options
author | Neil Williams <codehelp@debian.org> | 2015-11-05 16:59:19 +0000 |
---|---|---|
committer | Neil Williams <codehelp@debian.org> | 2015-11-05 16:59:19 +0000 |
commit | 712731075f2d514f4c51261be8e3afaa278d90be (patch) | |
tree | 9681809f0029c1f7bd161c0b20d478a75436cf34 /bin/vmdebootstrap | |
parent | 261af90a7aad0a72c776235b462fa8d1bf312679 (diff) | |
download | vmdebootstrap-712731075f2d514f4c51261be8e3afaa278d90be.tar.gz |
Only implement serial-console on Wheezy.
Diffstat (limited to 'bin/vmdebootstrap')
-rwxr-xr-x | bin/vmdebootstrap | 7 |
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): |