ec2: Add hvc0 as grub console output device

This commit is contained in:
Anders Ingemann 2016-06-04 19:22:38 +02:00
parent 9d2ad17d09
commit 45fb28082a

View file

@ -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