/[gli]/trunk/src/GLIInstallProfile.py
Gentoo

Diff of /trunk/src/GLIInstallProfile.py

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

Revision 456 Revision 457
1""" 1"""
2Gentoo Linux Installer 2Gentoo Linux Installer
3 3
4$Id: GLIInstallProfile.py,v 1.36 2005/03/29 04:36:14 codeman Exp $ 4$Id: GLIInstallProfile.py,v 1.37 2005/03/30 00:10:50 agaffney Exp $
5Copyright 2004 Gentoo Technologies Inc. 5Copyright 2004 Gentoo Technologies Inc.
6 6
7The GLI module contains all classes used in the Gentoo Linux Installer (or GLI). 7The GLI module contains all classes used in the Gentoo Linux Installer (or GLI).
8""" 8"""
9 9
25 def __init__(self): 25 def __init__(self):
26 parser = SimpleXMLParser.SimpleXMLParser() 26 parser = SimpleXMLParser.SimpleXMLParser()
27 27
28 parser.addHandler('gli-profile/stage-tarball', self.set_stage_tarball_uri) 28 parser.addHandler('gli-profile/stage-tarball', self.set_stage_tarball_uri)
29 parser.addHandler('gli-profile/kernel-initrd', self.set_kernel_initrd) 29 parser.addHandler('gli-profile/kernel-initrd', self.set_kernel_initrd)
30 parser.addHandler('gli-profile/kernel-args', self.set_kernel_args)
30 parser.addHandler('gli-profile/dns-servers', self.set_dns_servers) 31 parser.addHandler('gli-profile/dns-servers', self.set_dns_servers)
31 parser.addHandler('gli-profile/portage-tree-sync', self.set_portage_tree_sync_type) 32 parser.addHandler('gli-profile/portage-tree-sync', self.set_portage_tree_sync_type)
32 parser.addHandler('gli-profile/install-pcmcia-cs', self.set_install_pcmcia_cs) 33 parser.addHandler('gli-profile/install-pcmcia-cs', self.set_install_pcmcia_cs)
33 parser.addHandler('gli-profile/default-gateway', self.set_default_gateway) 34 parser.addHandler('gli-profile/default-gateway', self.set_default_gateway)
34 parser.addHandler('gli-profile/kernel-bootsplash', self.set_kernel_bootsplash) 35 parser.addHandler('gli-profile/kernel-bootsplash', self.set_kernel_bootsplash)
67 self._logging_daemon_pkg = "" 68 self._logging_daemon_pkg = ""
68 self._boot_loader_mbr = True 69 self._boot_loader_mbr = True
69 self._boot_loader_pkg = "" 70 self._boot_loader_pkg = ""
70 self._kernel_modules = [] 71 self._kernel_modules = []
71 self._kernel_config_uri = "" 72 self._kernel_config_uri = ""
73 self._kernel_args = ""
72 self._kernel_initrd = True 74 self._kernel_initrd = True
73 self._kernel_bootsplash = False 75 self._kernel_bootsplash = False
74 self._kernel_source_pkg = "" 76 self._kernel_source_pkg = ""
75 self._users = [] 77 self._users = []
76 self._root_pass_hash = "" 78 self._root_pass_hash = ""
197 #if not (kernel_config_uri): 199 #if not (kernel_config_uri):
198 # raise GLIException("KernelConfigURIError", 'fatal', 'set_kernel_config_uri', "Empty Kernel URI!") 200 # raise GLIException("KernelConfigURIError", 'fatal', 'set_kernel_config_uri', "Empty Kernel URI!")
199 201
200 self._kernel_config_uri = kernel_config_uri 202 self._kernel_config_uri = kernel_config_uri
201 203
204 def get_kernel_args(self):
205 "returns kernel arguments"
206 return self._kernel_args
207
208 def set_kernel_args(self, xml_path, kernel_args, xml_attr):
209 "kernel_args are the arguments to pass the kernel at boot from the bootloader."
210 self._kernel_args = kernel_args
211
202 def get_kernel_initrd(self): 212 def get_kernel_initrd(self):
203 "returns kernel_initrd" 213 "returns kernel_initrd"
204 return self._kernel_initrd 214 return self._kernel_initrd
205 215
206 def set_kernel_initrd(self, xml_path, kernel_initrd, xml_attr): 216 def set_kernel_initrd(self, xml_path, kernel_initrd, xml_attr):
646 'logging-daemon': self.get_logging_daemon_pkg, 656 'logging-daemon': self.get_logging_daemon_pkg,
647 'boot-loader_mbr': self.get_boot_loader_mbr, 657 'boot-loader_mbr': self.get_boot_loader_mbr,
648 'boot-loader': self.get_boot_loader_pkg, 658 'boot-loader': self.get_boot_loader_pkg,
649 'kernel-config': self.get_kernel_config_uri, 659 'kernel-config': self.get_kernel_config_uri,
650 'kernel-initrd': self.get_kernel_initrd, 660 'kernel-initrd': self.get_kernel_initrd,
661 'kernel-args': self.get_kernel_args,
651 'kernel-bootsplash': self.get_kernel_bootsplash, 662 'kernel-bootsplash': self.get_kernel_bootsplash,
652 'kernel-source': self.get_kernel_source_pkg, 663 'kernel-source': self.get_kernel_source_pkg,
653 'root-pass-hash': self.get_root_pass_hash, 664 'root-pass-hash': self.get_root_pass_hash,
654 'time-zone': self.get_time_zone, 665 'time-zone': self.get_time_zone,
655 'stage-tarball': self.get_stage_tarball_uri, 666 'stage-tarball': self.get_stage_tarball_uri,

Legend:
Removed from v.456  
changed lines
  Added in v.457

  ViewVC Help
Powered by ViewVC 1.1.20