summaryrefslogtreecommitdiffstats
path: root/cobbler
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2007-02-15 13:07:49 -0500
committerJim Meyering <jim@meyering.net>2007-02-15 13:07:49 -0500
commit130cf9a7f60c06629a21b51c99a08c4fb2749d19 (patch)
tree3e408f565d44f732263e242b9df41f673e3a0bf8 /cobbler
parent54dd6308a2217d8bfa499982b43459a7a3f04520 (diff)
downloadthird_party-cobbler-130cf9a7f60c06629a21b51c99a08c4fb2749d19.tar.gz
third_party-cobbler-130cf9a7f60c06629a21b51c99a08c4fb2749d19.tar.xz
third_party-cobbler-130cf9a7f60c06629a21b51c99a08c4fb2749d19.zip
Temporary menu support hack to work around menu.c32 timeout problems. User can type "menu" at the prompt to get a menu,
or they can type "local" (or just wait 20 seconds) for a local boot. Once the user starts typing, the absolute timeout is 10 minutes, ensuring a machine doesn't get left at the menu screen. All of this will probably be user configurable later.
Diffstat (limited to 'cobbler')
-rw-r--r--cobbler/action_sync.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/cobbler/action_sync.py b/cobbler/action_sync.py
index 502c879..ebf5a91 100644
--- a/cobbler/action_sync.py
+++ b/cobbler/action_sync.py
@@ -570,11 +570,11 @@ class BootSync:
fname = os.path.join(self.settings.tftpboot, "pxelinux.cfg", "default")
defaults = open(fname, "w")
- defaults.write("DEFAULT menu.c32\n")
- defaults.write("PROMPT 0\n")
+ defaults.write("DEFAULT local\n")
+ defaults.write("PROMPT 1\n")
defaults.write("MENU TITLE Cobbler | http://cobbler.et.redhat.com\n")
defaults.write("TIMEOUT 200\n")
- defaults.write("TOTALTIMEOUT 600\n")
+ defaults.write("TOTALTIMEOUT 6000\n")
defaults.write("ONTIMEOUT local\n")
defaults.write("\n")
defaults.write("LABEL local\n")