/[smeserver]/cdrom.image/updates/bootloaderInfo.py
ViewVC logotype

Diff of /cdrom.image/updates/bootloaderInfo.py

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.2 by slords, Wed Jul 13 21:59:02 2005 UTC Revision 1.3 by slords, Wed Jul 13 22:11:53 2005 UTC
# Line 721  class x86BootloaderInfo(bootloaderInfo): Line 721  class x86BootloaderInfo(bootloaderInfo):
721          f.write("#          initrd %sinitrd-version.img\n" % (cfPath))          f.write("#          initrd %sinitrd-version.img\n" % (cfPath))
722          f.write("#boot=/dev/%s\n" % (grubTarget))          f.write("#boot=/dev/%s\n" % (grubTarget))
723    
724            # Check to see if smp kernel should be default or not
725            if isys.smpAvailable() or isys.htavailable():
726                smpCapable=1
727            else:
728                smpCapable=0
729    
730          # get the default image to boot... we have to walk and find it          # get the default image to boot... we have to walk and find it
731          # since grub indexes by where it is in the config file          # since grub indexes by where it is in the config file
732          if defaultDev == rootDev:          if defaultDev == rootDev:
733              for kernel in range(0, len(kernelList)):              for kernel in range(0, len(kernelList)):
734                  default=kernel                  default=kernel
735                  if kernelList[kernel][2].find('smp')<0 or isys.smpAvailable() or isys.htavailable():                  version=kernelList[kernel][2]
736                      break                  if version.find('smp')<0 and not smpCapable:
737                            break
738                    if version.find('smp')>=0 and smpCapable:
739                            break
740          else:          else:
741              # if the default isn't linux, it's the first thing in the              # if the default isn't linux, it's the first thing in the
742              # chain list              # chain list


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed