close Warning: Can't synchronize with repository "keplertools" (/srv/svn/keplertools does not appear to be a Subversion repository.). Look in the Trac log for more information.

Changes between Initial Version and Version 1 of LtspServerGrub


Ignore:
Timestamp:
Sep 10, 2011, 11:49:49 AM (15 years ago)
Author:
Rüdiger Kupper
Comment:

Wie verhindert man, dass GRUB auf Tastendruck wartet?

Legend:

Unmodified
Added
Removed
Modified
  • LtspServerGrub

    v1 v1  
     1[[PageOutline]]
     2
     3= GRUB Bootloader auf den LTSP-Servern =
     4
     5
     6
     7
     8== Bei Bootfehler nicht auf Tastendruck warten ==
     9
     10GRUB2 ist unter Ubuntu so konfiguriert, dass es nach einem misslungenen Bootvorgang (etwa wegen Stromausfall während des Bootens, oder weshalb noch(?)) auf einen Tastendruck wartet, bevor es bootet. Das ist für einen Server, der meist remote rebootet wird, eher unpraktisch.
     11
     12Lösung: Das Verhalten steht in `/etc/grub.d/00_header`:
     13
     14Den Abschnitt
     15{{{
     16make_timeout ()
     17{
     18    cat << EOF
     19if [ "\${recordfail}" = 1 ]; then
     20  set timeout=-1
     21else
     22  set timeout=${2}
     23fi
     24EOF
     25}
     26}}}
     27
     28ändern zu:
     29{{{
     30make_timeout ()
     31{
     32    cat << EOF
     33## following lines commented out in /etc/grub.d/00_header
     34## we want GRUB to always boot something, even if the last
     35## boot failed for some reason, because there is usually
     36## no-one to press a key...
     37#if [ "\${recordfail}" = 1 ]; then
     38#  set timeout=-1
     39#else
     40  set timeout=${2}
     41#fi
     42EOF
     43}
     44}}}
     45