mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-24 15:36:27 +00:00
ec2: Add hvc0 as grub console output device
This commit is contained in:
parent
9d2ad17d09
commit
45fb28082a
1 changed files with 10 additions and 0 deletions
|
@ -6,6 +6,16 @@ import os
|
||||||
from bootstrapvz.common.tools import log_check_call
|
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):
|
class UpdateGrubConfig(Task):
|
||||||
description = 'Updating the grub config'
|
description = 'Updating the grub config'
|
||||||
phase = phases.system_modification
|
phase = phases.system_modification
|
||||||
|
|
Loading…
Add table
Reference in a new issue