Update pygrub for new Solaris directory names.
authorjohn.levon@sun.com <john.levon@sun.com>
Fri, 19 Jan 2007 02:19:54 +0000 (18:19 -0800)
committerjohn.levon@sun.com <john.levon@sun.com>
Fri, 19 Jan 2007 02:19:54 +0000 (18:19 -0800)
Signed-off-by: John Levon <john.levon@sun.com>
tools/pygrub/src/pygrub

index a0de67df6771e9cf5ac04291d898217e275d033a..e28c19804a0c982b2c19d938031d80199982baf8 100644 (file)
@@ -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',