2016-03-25 23:10:02 +01:00
|
|
|
Index: xen-4.7.0-testing/tools/pygrub/src/pygrub
|
2013-01-22 16:40:06 +01:00
|
|
|
===================================================================
|
2016-03-25 23:10:02 +01:00
|
|
|
--- xen-4.7.0-testing.orig/tools/pygrub/src/pygrub
|
|
|
|
+++ xen-4.7.0-testing/tools/pygrub/src/pygrub
|
2015-11-11 18:04:52 +01:00
|
|
|
@@ -25,6 +25,7 @@ import fsimage
|
2013-01-22 16:40:06 +01:00
|
|
|
import grub.GrubConf
|
|
|
|
import grub.LiloConf
|
|
|
|
import grub.ExtLinuxConf
|
|
|
|
+import xnloader
|
|
|
|
|
|
|
|
PYGRUB_VER = 0.6
|
|
|
|
FS_READ_MAX = 1024 * 1024
|
2016-03-25 23:10:02 +01:00
|
|
|
@@ -763,6 +764,8 @@ if __name__ == "__main__":
|
2013-01-22 16:40:06 +01:00
|
|
|
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)
|