direct-io.hg

changeset 13496:5633bb2abeaf

Update pygrub for new Solaris directory names.

Signed-off-by: John Levon <john.levon@sun.com>
author john.levon@sun.com
date Thu Jan 18 18:19:54 2007 -0800 (2007-01-18)
parents e2539ab3580a
children 683bc79cf579
files tools/pygrub/src/pygrub
line diff
     1.1 --- a/tools/pygrub/src/pygrub	Thu Jan 18 18:54:28 2007 +0000
     1.2 +++ b/tools/pygrub/src/pygrub	Thu Jan 18 18:19:54 2007 -0800
     1.3 @@ -503,7 +503,7 @@ def run_grub(file, entry, fs):
     1.4  # If nothing has been specified, look for a Solaris domU. If found, perform the
     1.5  # necessary tweaks.
     1.6  def sniff_solaris(fs, cfg):
     1.7 -    if not fs.file_exists("/platform/i86xen/kernel/unix"):
     1.8 +    if not fs.file_exists("/platform/i86xpv/kernel/unix"):
     1.9          return cfg
    1.10      
    1.11      # darned python
    1.12 @@ -516,10 +516,10 @@ def sniff_solaris(fs, cfg):
    1.13              longmode = True
    1.14  
    1.15      if not cfg["kernel"]:
    1.16 -        cfg["kernel"] = "/platform/i86xen/kernel/unix"
    1.17 +        cfg["kernel"] = "/platform/i86xpv/kernel/unix"
    1.18          cfg["ramdisk"] = "/platform/i86pc/boot_archive"
    1.19          if longmode:
    1.20 -            cfg["kernel"] = "/platform/i86xen/kernel/amd64/unix"
    1.21 +            cfg["kernel"] = "/platform/i86xpv/kernel/amd64/unix"
    1.22              cfg["ramdisk"] = "/platform/i86pc/amd64/boot_archive"
    1.23  
    1.24      # Unpleasant. Typically we'll have 'root=foo -k' or 'root=foo /kernel -k',