[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] pygrub: if default entry is "saved" then use first entry.
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1258960630 0 # Node ID c2c2e67b8198b7e1e48597ebeac699d174c7217a # Parent 24bcd003f8ae9d07fe81d66fa42cbe0647c49fbc 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@xxxxxxxxxx> --- tools/pygrub/src/GrubConf.py | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -r 24bcd003f8ae -r c2c2e67b8198 tools/pygrub/src/GrubConf.py --- a/tools/pygrub/src/GrubConf.py Mon Nov 23 07:16:23 2009 +0000 +++ b/tools/pygrub/src/GrubConf.py Mon Nov 23 07:17:10 2009 +0000 @@ -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) _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |