mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-24 07:26:29 +00:00

The way boot options for linux and config params for grub were configured gave rise to quite a few bugs. The configuration has now been abstracted so that options can be added without interfering with the work of other tasks (no more sed_i!)
14 lines
486 B
Python
14 lines
486 B
Python
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')
|