summaryrefslogtreecommitdiff
path: root/pygrub-netware-xnloader.patch
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-10-12 04:00:49 +0000
committerCoprDistGit <infra@openeuler.org>2023-10-12 04:00:49 +0000
commitc22f60e6e55f1bf300dd76d2222a93911f3b2bb2 (patch)
treeef665e7018377f53612ac2751dcaea35a1c587b6 /pygrub-netware-xnloader.patch
parent39a4763249cd6289e5019acfe0c98dbb169f5f2e (diff)
automatic import of xenopeneuler22.03_LTS
Diffstat (limited to 'pygrub-netware-xnloader.patch')
-rw-r--r--pygrub-netware-xnloader.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/pygrub-netware-xnloader.patch b/pygrub-netware-xnloader.patch
new file mode 100644
index 0000000..6ebe69a
--- /dev/null
+++ b/pygrub-netware-xnloader.patch
@@ -0,0 +1,21 @@
+Index: xen-4.13.0-testing/tools/pygrub/src/pygrub
+===================================================================
+--- xen-4.13.0-testing.orig/tools/pygrub/src/pygrub
++++ xen-4.13.0-testing/tools/pygrub/src/pygrub
+@@ -27,6 +27,7 @@ import xenfsimage
+ import grub.GrubConf
+ import grub.LiloConf
+ import grub.ExtLinuxConf
++import xnloader
+
+ PYGRUB_VER = 0.6
+ FS_READ_MAX = 1024 * 1024
+@@ -768,6 +769,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)