Merge pull request #193 from jwendell/boot-no-quiet

Don't boot quietly on extlinux (aws)
This commit is contained in:
Anders Ingemann 2015-02-05 15:29:24 +00:00
commit fce3f502ab
2 changed files with 14 additions and 0 deletions

View file

@ -138,6 +138,7 @@ def get_bootloader_group(manifest):
group.append(boot.InstallGrub_2) group.append(boot.InstallGrub_2)
if manifest.system['bootloader'] == 'extlinux': if manifest.system['bootloader'] == 'extlinux':
group.extend([boot.AddExtlinuxPackage, group.extend([boot.AddExtlinuxPackage,
boot.ConfigureExtLinux,
boot.InstallExtLinux]) boot.InstallExtLinux])
return group return group

View file

@ -148,6 +148,19 @@ class AddExtlinuxPackage(Task):
info.packages.add('syslinux-common') info.packages.add('syslinux-common')
class ConfigureExtLinux(Task):
description = 'Configuring extlinux'
phase = phases.system_modification
predecessors = [filesystem.FStab]
@classmethod
def run(cls, info):
from bootstrapvz.common.tools import sed_i
extlinux_def = os.path.join(info.root, 'etc/default/extlinux')
sed_i(extlinux_def, '^EXTLINUX_PARAMETERS="ro quiet"',
'EXTLINUX_PARAMETERS="ro console=ttyS0"')
class InstallExtLinux(Task): class InstallExtLinux(Task):
description = 'Installing extlinux' description = 'Installing extlinux'
phase = phases.system_modification phase = phases.system_modification