Displaying 2 results from an estimated 2 matches for "_pygrub_path".
Did you mean:
pygrub_path
2010 Feb 18
2
backport upstream pygrub fixes to allow booting squeeze default install?
...bject to license terms.
import os
import commands
+import xen.util.auxbin
_scripts_dir = {
"Linux": "/etc/xen/scripts",
@@ -92,6 +93,6 @@
scripts_dir = _get(_scripts_dir, "/etc/xen/scripts")
xend_autorestart = _get(_xend_autorestart)
-pygrub_path = _get(_pygrub_path, "/usr/bin/pygrub")
+pygrub_path = _get(_pygrub_path, xen.util.auxbin.pathTo("pygrub"))
vif_script = _get(_vif_script, "vif-bridge")
lookup_balloon_stat = _get(_balloon_stat, _linux_balloon_stat)
If you agree with these changes then I think I have the necessary
acco...
2007 Jan 05
10
[PATCH 1/7] Fix pygrub path on Solaris
...e
for (devtype, devinfo) in self.info.all_devices_sxpr():
diff --git a/tools/python/xen/xend/osdep.py b/tools/python/xen/xend/osdep.py
--- a/tools/python/xen/xend/osdep.py
+++ b/tools/python/xen/xend/osdep.py
@@ -29,8 +29,13 @@ _xend_autorestart = {
"SunOS": False,
}
+_pygrub_path = {
+ "SunOS": "/usr/lib/xen/bin/pygrub"
+}
+
def _get(var, default=None):
return var.get(os.uname()[0], default)
scripts_dir = _get(_scripts_dir, "/etc/xen/scripts")
xend_autorestart = _get(_xend_autorestart)
+pygrub_path = _get(_pygrub_path, "/usr/b...