From 45fb28082ac2f595c3c8d984a98e6ce8e2696a34 Mon Sep 17 00:00:00 2001 From: Anders Ingemann Date: Sat, 4 Jun 2016 19:22:38 +0200 Subject: [PATCH] ec2: Add hvc0 as grub console output device --- bootstrapvz/providers/ec2/tasks/boot.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/bootstrapvz/providers/ec2/tasks/boot.py b/bootstrapvz/providers/ec2/tasks/boot.py index ce0485b..99510bb 100644 --- a/bootstrapvz/providers/ec2/tasks/boot.py +++ b/bootstrapvz/providers/ec2/tasks/boot.py @@ -6,6 +6,16 @@ import os from bootstrapvz.common.tools import log_check_call +class AddXenGrubConsoleOutputDevice(Task): + description = 'Adding XEN `hvc0\' as output device for grub' + phase = phases.system_modification + successors = [grub.WriteGrubConfig] + + @classmethod + def run(cls, info): + info.grub_config['GRUB_CMDLINE_LINUX_DEFAULT'].append('console=hvc0') + + class UpdateGrubConfig(Task): description = 'Updating the grub config' phase = phases.system_modification