From: Keir Fraser Date: Thu, 12 Mar 2009 11:10:22 +0000 (+0000) Subject: pygrub: Detect NetWare PV in pygrub X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~13992^2~94 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=2b9e3c9a481c5e7b56770df6b0bf1778d9d72550;p=xen.git pygrub: Detect NetWare PV in pygrub Signed-off-by: John Levon --- 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 @@ -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"])