aboutsummaryrefslogtreecommitdiffstats
path: root/tools/pygrub
diff options
context:
space:
mode:
authorjohn.levon@sun.com <john.levon@sun.com>2007-01-18 18:19:54 -0800
committerjohn.levon@sun.com <john.levon@sun.com>2007-01-18 18:19:54 -0800
commite34a812b5dcd3b0bffb5fd8e535031f1d3521567 (patch)
tree8ce4e2cd2b8f1f0f055bdd0735de0e5d06b00073 /tools/pygrub
parentf545359b1c54f59be9d7c27112a68c51c45b06b5 (diff)
downloadxen-e34a812b5dcd3b0bffb5fd8e535031f1d3521567.tar.gz
xen-e34a812b5dcd3b0bffb5fd8e535031f1d3521567.tar.bz2
xen-e34a812b5dcd3b0bffb5fd8e535031f1d3521567.zip
Update pygrub for new Solaris directory names.
Signed-off-by: John Levon <john.levon@sun.com>
Diffstat (limited to 'tools/pygrub')
-rw-r--r--tools/pygrub/src/pygrub6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/pygrub/src/pygrub b/tools/pygrub/src/pygrub
index a0de67df67..e28c19804a 100644
--- a/tools/pygrub/src/pygrub
+++ b/tools/pygrub/src/pygrub
@@ -503,7 +503,7 @@ def run_grub(file, entry, fs):
# If nothing has been specified, look for a Solaris domU. If found, perform the
# necessary tweaks.
def sniff_solaris(fs, cfg):
- if not fs.file_exists("/platform/i86xen/kernel/unix"):
+ if not fs.file_exists("/platform/i86xpv/kernel/unix"):
return cfg
# darned python
@@ -516,10 +516,10 @@ def sniff_solaris(fs, cfg):
longmode = True
if not cfg["kernel"]:
- cfg["kernel"] = "/platform/i86xen/kernel/unix"
+ cfg["kernel"] = "/platform/i86xpv/kernel/unix"
cfg["ramdisk"] = "/platform/i86pc/boot_archive"
if longmode:
- cfg["kernel"] = "/platform/i86xen/kernel/amd64/unix"
+ cfg["kernel"] = "/platform/i86xpv/kernel/amd64/unix"
cfg["ramdisk"] = "/platform/i86pc/amd64/boot_archive"
# Unpleasant. Typically we'll have 'root=foo -k' or 'root=foo /kernel -k',