[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-3.4-testing] pygrub: if default entry is "saved" then use first entry.



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1259310442 0
# Node ID 6b5a769575c36add9e04e06484796fa46e28b155
# Parent  55888639976158c55f5d514e0e2519feb9f1aa3b
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>
xen-unstable changeset:   20480:c2c2e67b8198
xen-unstable date:        Mon Nov 23 07:17:10 2009 +0000
---
 tools/pygrub/src/GrubConf.py |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r 558886399761 -r 6b5a769575c3 tools/pygrub/src/GrubConf.py
--- a/tools/pygrub/src/GrubConf.py      Fri Nov 27 08:26:48 2009 +0000
+++ b/tools/pygrub/src/GrubConf.py      Fri Nov 27 08:27:22 2009 +0000
@@ -221,7 +221,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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.