Package pyanaconda :: Module bootloader
[hide private]
[frames] | no frames]

Module bootloader

source code

Classes [hide private]
  serial_opts
  BootLoaderError
  Arguments
  BootLoaderImage
Base class for bootloader images.
  LinuxBootLoaderImage
  TbootLinuxBootLoaderImage
  BootLoader
TODO:
  GRUB
  EFIGRUB
TODO:
  GRUB2
GRUBv2
  YabootSILOBase
  Yaboot
TODO:
  IPSeriesYaboot
TODO:
  MacYaboot
TODO:
  ZIPL
TODO:
  SILO
TODO:
Functions [hide private]
 
get_boot_block(device, seek_blocks=0) source code
 
is_windows_boot_block(block) source code
 
has_windows_boot_block(device) source code
 
parse_serial_opt(arg)
Parse and split serial console options.
source code
 
writeSysconfigKernel(anaconda, default_kernel) source code
 
writeBootloader(anaconda)
Write bootloader configuration to disk.
source code
Variables [hide private]
  _ = lambda x:
  N_ = lambda x:
  log = logging.getLogger("storage")
Function Details [hide private]

parse_serial_opt(arg)

source code 
Parse and split serial console options.

Documentation/kernel-parameters.txt says:
  ttyS<n>[,options]
            Use the specified serial port.  The options are of
            the form "bbbbpnf", where "bbbb" is the baud rate,
            "p" is parity ("n", "o", or "e"), "n" is number of
            bits, and "f" is flow control ("r" for RTS or
            omit it).  Default is "9600n8".
but note that everything after the baud rate is optional, so these are
all valid: 9600, 19200n, 38400n8, 9600e7r

writeBootloader(anaconda)

source code 

Write bootloader configuration to disk.

When we get here, the bootloader will already have a default linux image. We only have to add images for the non-default kernels and adjust the default to reflect whatever the default variant is.