projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb0a30b
)
pygrub: Detect NetWare PV in pygrub
author
Keir Fraser
<keir.fraser@citrix.com>
Thu, 12 Mar 2009 11:10:22 +0000
(11:10 +0000)
committer
Keir Fraser
<keir.fraser@citrix.com>
Thu, 12 Mar 2009 11:10:22 +0000
(11:10 +0000)
Signed-off-by: John Levon <john.levon@sun.com>
tools/pygrub/src/pygrub
patch
|
blob
|
history
diff --git
a/tools/pygrub/src/pygrub
b/tools/pygrub/src/pygrub
index 98b4352b85fbe93025ccd40de506d4837b087946..e3a540fa04151f16b8b5e6410d2c3b710d560994 100644
(file)
--- a/
tools/pygrub/src/pygrub
+++ b/
tools/pygrub/src/pygrub
@@
-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
@@
-662,6
+671,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"])