/[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.1 by slords, Sun Jul 3 23:48:44 2005 UTC Revision 1.2 by slords, Wed Jul 13 21:59:02 2005 UTC
# Line 15  Line 15 
15  # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16  #  #
17    
18    import isys
19  import os, sys  import os, sys
20  import crypt  import crypt
21  import whrandom  import whrandom
# Line 723  class x86BootloaderInfo(bootloaderInfo): Line 724  class x86BootloaderInfo(bootloaderInfo):
724          # 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
725          # since grub indexes by where it is in the config file          # since grub indexes by where it is in the config file
726          if defaultDev == rootDev:          if defaultDev == rootDev:
727              default = 0              for kernel in range(0, len(kernelList)):
728                    default=kernel
729                    if kernelList[kernel][2].find('smp')<0 or isys.smpAvailable() or isys.htavailable():
730                        break
731          else:          else:
732              # 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
733              # 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