diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2009-03-12 11:10:22 +0000 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2009-03-12 11:10:22 +0000 |
commit | 2b9e3c9a481c5e7b56770df6b0bf1778d9d72550 (patch) | |
tree | 733b89902a03246e2a24ec4a99e2e227e7288674 /tools/pygrub | |
parent | fb0a30b839c4dbe13fafe63c47446485e86668f7 (diff) | |
download | xen-2b9e3c9a481c5e7b56770df6b0bf1778d9d72550.tar.gz xen-2b9e3c9a481c5e7b56770df6b0bf1778d9d72550.tar.bz2 xen-2b9e3c9a481c5e7b56770df6b0bf1778d9d72550.zip |
pygrub: Detect NetWare PV in pygrub
Signed-off-by: John Levon <john.levon@sun.com>
Diffstat (limited to 'tools/pygrub')
-rw-r--r-- | tools/pygrub/src/pygrub | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/pygrub/src/pygrub b/tools/pygrub/src/pygrub index 98b4352b85..e3a540fa04 100644 --- 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 @@ -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() |