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.
- 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
-
|
v1
|
v1
|
|
| | 1 | [[PageOutline]] |
| | 2 | |
| | 3 | = GRUB Bootloader auf den LTSP-Servern = |
| | 4 | |
| | 5 | |
| | 6 | |
| | 7 | |
| | 8 | == Bei Bootfehler nicht auf Tastendruck warten == |
| | 9 | |
| | 10 | GRUB2 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 | |
| | 12 | Lösung: Das Verhalten steht in `/etc/grub.d/00_header`: |
| | 13 | |
| | 14 | Den Abschnitt |
| | 15 | {{{ |
| | 16 | make_timeout () |
| | 17 | { |
| | 18 | cat << EOF |
| | 19 | if [ "\${recordfail}" = 1 ]; then |
| | 20 | set timeout=-1 |
| | 21 | else |
| | 22 | set timeout=${2} |
| | 23 | fi |
| | 24 | EOF |
| | 25 | } |
| | 26 | }}} |
| | 27 | |
| | 28 | ändern zu: |
| | 29 | {{{ |
| | 30 | make_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 |
| | 42 | EOF |
| | 43 | } |
| | 44 | }}} |
| | 45 | |