22 lines
722 B
Diff
22 lines
722 B
Diff
|
Index: xen-4.2.1-testing/tools/pygrub/src/pygrub
|
||
|
===================================================================
|
||
|
--- xen-4.2.1-testing.orig/tools/pygrub/src/pygrub
|
||
|
+++ xen-4.2.1-testing/tools/pygrub/src/pygrub
|
||
|
@@ -26,6 +26,7 @@ import fsimage
|
||
|
import grub.GrubConf
|
||
|
import grub.LiloConf
|
||
|
import grub.ExtLinuxConf
|
||
|
+import xnloader
|
||
|
|
||
|
PYGRUB_VER = 0.6
|
||
|
FS_READ_MAX = 1024 * 1024
|
||
|
@@ -734,6 +735,8 @@ if __name__ == "__main__":
|
||
|
if len(data) == 0:
|
||
|
os.close(tfd)
|
||
|
del datafile
|
||
|
+ if file_to_read == "/nwserver/xnloader.sys":
|
||
|
+ xnloader.patch_netware_loader(ret)
|
||
|
return ret
|
||
|
try:
|
||
|
os.write(tfd, data)
|