mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-22 18:00:35 +00:00
Don't boot quietly on extlinux (aws)
So that we are able to see the System Log through EC2 console or command line tools.
This commit is contained in:
parent
c2b37c7329
commit
ea21dcfcec
2 changed files with 14 additions and 0 deletions
|
@ -138,6 +138,7 @@ def get_bootloader_group(manifest):
|
|||
group.append(boot.InstallGrub_2)
|
||||
if manifest.system['bootloader'] == 'extlinux':
|
||||
group.extend([boot.AddExtlinuxPackage,
|
||||
boot.ConfigureExtLinux,
|
||||
boot.InstallExtLinux])
|
||||
return group
|
||||
|
||||
|
|
|
@ -148,6 +148,19 @@ class AddExtlinuxPackage(Task):
|
|||
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):
|
||||
description = 'Installing extlinux'
|
||||
phase = phases.system_modification
|
||||
|
|
Loading…
Add table
Reference in a new issue