bootstrap-vz/bootstrapvz/providers/gce/tasks/boot.py

15 lines
486 B
Python
Raw Normal View History

from bootstrapvz.base import Task
from bootstrapvz.common import phases
from bootstrapvz.common.tasks import grub
class ConfigureGrub(Task):
description = 'Change grub configuration to allow for ttyS0 output'
phase = phases.system_modification
successors = [grub.WriteGrubConfig]
@classmethod
def run(cls, info):
info.grub_config['GRUB_CMDLINE_LINUX'].append('console=ttyS0,38400n8')
info.grub_config['GRUB_CMDLINE_LINUX'].append('elevator=noop')