aboutsummaryrefslogtreecommitdiffstats
path: root/tools/pygrub
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2008-10-03 09:42:11 +0100
committerKeir Fraser <keir.fraser@citrix.com>2008-10-03 09:42:11 +0100
commit688581c472af0cd499ac133f8ec52325fc601a19 (patch)
treefc78f9738a53e10e5fc1c720c76bcaeb2d5fbcd4 /tools/pygrub
parentac4148f21968cabdc265403297dbf8d04955fff7 (diff)
downloadxen-688581c472af0cd499ac133f8ec52325fc601a19.tar.gz
xen-688581c472af0cd499ac133f8ec52325fc601a19.tar.bz2
xen-688581c472af0cd499ac133f8ec52325fc601a19.zip
pygrub: fix the parameter `default' and `timeout' in elilo.conf
This patch fixes two issues related to the parameter `default' and `timeout' in elilo.conf: - LiloConf.py cannot interpret the parameter `default' and `timeout'. The first kernel always boot up even if the second kernel is specified by `default'. And `timeout' is ignored. This issue is introduced by cset 15953:70bb28b62ffb. - If two kernels or more are installed, the last kernel cannot boot up even if it is specified by `default'. Signed-off-by: KUWAMURA Shin'ya <kuwa@jp.fujitsu.com>
Diffstat (limited to 'tools/pygrub')
-rw-r--r--tools/pygrub/src/LiloConf.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/pygrub/src/LiloConf.py b/tools/pygrub/src/LiloConf.py
index deb94998b9..9d69a9446b 100644
--- a/tools/pygrub/src/LiloConf.py
+++ b/tools/pygrub/src/LiloConf.py
@@ -142,7 +142,7 @@ class LiloConfigFile(object):
self.images.append(image)
def _get_default(self):
- for i in range(0, len(self.images) - 1):
+ for i in range(len(self.images)):
if self.images[i].title == self._default:
return i
return 0
@@ -150,8 +150,8 @@ class LiloConfigFile(object):
self._default = val
default = property(_get_default, _set_default)
- commands = { "default": "self.default",
- "timeout": "self.timeout",
+ commands = { "default": "default",
+ "timeout": "timeout",
"prompt": None,
"relocatable": None,
}