aboutsummaryrefslogtreecommitdiffstats
path: root/tools/pygrub/src/GrubConf.py
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2009-11-23 07:17:10 +0000
committerKeir Fraser <keir.fraser@citrix.com>2009-11-23 07:17:10 +0000
commit758a4a6431c1de09bb52ce378e217dcce7b5f64d (patch)
tree4199760b33bb679c58ac60a9d750708c49842878 /tools/pygrub/src/GrubConf.py
parentadaedafa56c8aae4e1b3d30b7cddd3edcd72e99f (diff)
downloadxen-758a4a6431c1de09bb52ce378e217dcce7b5f64d.tar.gz
xen-758a4a6431c1de09bb52ce378e217dcce7b5f64d.tar.bz2
xen-758a4a6431c1de09bb52ce378e217dcce7b5f64d.zip
pygrub: if default entry is "saved" then use first entry.
pygrub doesn't support the "savedefault" command and will error out if menu.lst uses the "default saved" directive. We might as well start on the first entry in this case instead of failing. Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Diffstat (limited to 'tools/pygrub/src/GrubConf.py')
-rw-r--r--tools/pygrub/src/GrubConf.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/pygrub/src/GrubConf.py b/tools/pygrub/src/GrubConf.py
index cfd75dbc48..694f5d5dd2 100644
--- a/tools/pygrub/src/GrubConf.py
+++ b/tools/pygrub/src/GrubConf.py
@@ -258,7 +258,7 @@ class GrubConfigFile(object):
return self._default
def _set_default(self, val):
if val == "saved":
- self._default = -1
+ self._default = 0
else:
self._default = int(val)