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

[Xen-changelog] [xen-unstable] pygrub: Detect NetWare PV in pygrub



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1236856222 0
# Node ID fd1bbce5d533bf59ba01b1d42b9b1769aacfb5bf
# Parent  1e9342bc6d6e9f7f8f6ce903a52dd6b307f2b734
pygrub: Detect NetWare PV in pygrub

Signed-off-by: John Levon <john.levon@xxxxxxx>
---
 tools/pygrub/src/pygrub |   12 ++++++++++++
 1 files changed, 12 insertions(+)

diff -r 1e9342bc6d6e -r fd1bbce5d533 tools/pygrub/src/pygrub
--- a/tools/pygrub/src/pygrub   Thu Mar 12 11:09:57 2009 +0000
+++ b/tools/pygrub/src/pygrub   Thu Mar 12 11:10:22 2009 +0000
@@ -583,6 +583,15 @@ def sniff_solaris(fs, cfg):
 
     return cfg
  
+def sniff_netware(fs, cfg):
+    if not fs.file_exists("/nwserver/xnloader.sys"):
+        return cfg
+
+    if not cfg["kernel"]:
+        cfg["kernel"] = "/nwserver/xnloader.sys"
+
+    return cfg
+
 if __name__ == "__main__":
     sel = None
     
@@ -663,6 +672,9 @@ if __name__ == "__main__":
     chosencfg = sniff_solaris(fs, incfg)
 
     if not chosencfg["kernel"]:
+        chosencfg = sniff_netware(fs, incfg)
+
+    if not chosencfg["kernel"]:
         chosencfg = run_grub(file, entry, fs, incfg["args"])
 
     data = fs.open_file(chosencfg["kernel"]).read()

_______________________________________________
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®.