mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-22 18:00:35 +00:00
Better grub options
Inspired by 9c151c43b3ee85fe8cb7d4cdadb45115807c6710 by JamesBromberger/bootstrap-vz
This commit is contained in:
parent
58fdab7be2
commit
608de63d3e
1 changed files with 4 additions and 1 deletions
|
@ -27,7 +27,10 @@ class ConfigureGrub(Task):
|
|||
grub_def = os.path.join(info.root, 'etc/default/grub')
|
||||
sed_i(grub_def, '^#GRUB_TERMINAL=console', 'GRUB_TERMINAL=console')
|
||||
sed_i(grub_def, '^GRUB_CMDLINE_LINUX_DEFAULT="quiet"',
|
||||
'GRUB_CMDLINE_LINUX_DEFAULT="console=ttyS0"')
|
||||
'GRUB_CMDLINE_LINUX_DEFAULT="console=hvc0"')
|
||||
sed_i(grub_def, '^GRUB_TIMEOUT=[0-9]+', 'GRUB_TIMEOUT=0\n'
|
||||
'GRUB_HIDDEN_TIMEOUT=true')
|
||||
sed_i(grub_def, '^#GRUB_DISABLE_RECOVERY="true"', 'GRUB_DISABLE_RECOVERY="true"')
|
||||
|
||||
|
||||
class InstallGrub_1_99(Task):
|
||||
|
|
Loading…
Add table
Reference in a new issue