Merge pull request #117 from zeridon/fix-grub-options

Improvement in grub options for ec2
This commit is contained in:
Anders Ingemann 2014-07-09 23:13:07 +02:00
commit 5bb0e5428e

View file

@ -44,7 +44,7 @@ class ConfigurePVGrub(Task):
sed_i(grub_def, '^GRUB_TIMEOUT=[0-9]+', 'GRUB_TIMEOUT=0\n'
'GRUB_HIDDEN_TIMEOUT=true')
sed_i(grub_def, '^#GRUB_TERMINAL=console', 'GRUB_TERMINAL=console')
sed_i(grub_def, '^GRUB_CMDLINE_LINUX_DEFAULT="quiet"', 'GRUB_CMDLINE_LINUX_DEFAULT="console=hvc0"')
sed_i(grub_def, '^GRUB_CMDLINE_LINUX_DEFAULT=.*', 'GRUB_CMDLINE_LINUX_DEFAULT="consoleblank=0 console=hvc0 elevator=noop"')
from bootstrapvz.common.tools import log_check_call
log_check_call(['chroot', info.root, 'update-grub'])