From 94b3e4605a11f0af926c0e14afd421fb97febd5c Mon Sep 17 00:00:00 2001 From: Vladimir Vitkov Date: Wed, 2 Jul 2014 15:04:54 +0300 Subject: [PATCH] Improvement in grub options * Be more robust when setting GRUB_CMDLINE_LINUX_DEFAULT * Stop console from blanking * Switch elevator to noop as disks are not real disks and this yields better performance. --- bootstrapvz/providers/ec2/tasks/boot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootstrapvz/providers/ec2/tasks/boot.py b/bootstrapvz/providers/ec2/tasks/boot.py index c325513..11b322f 100644 --- a/bootstrapvz/providers/ec2/tasks/boot.py +++ b/bootstrapvz/providers/ec2/tasks/boot.py @@ -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'])