1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
"""
# Copyright 1999-2005 Gentoo Foundation
# This source code is distributed under the terms of version 2 of the GNU
# General Public License as published by the Free Software Foundation, a copy
# of which can be found in the main directory of this project.
Gentoo Linux Installer
$Id: amd64ArchitectureTemplate.py,v 1.9 2006/01/02 22:56:24 agaffney Exp $
Copyright 2004 Gentoo Technologies Inc.
This fills in amd64 specific functions.
"""
import sys
sys.path.append("../../templates")
import GLIUtility, string
#from GLIArchitectureTemplate import ArchitectureTemplate
from x86ArchitectureTemplate import x86ArchitectureTemplate
from GLIException import *
import parted
class amd64ArchitectureTemplate(x86ArchitectureTemplate):
def __init__(self,install_profile=None, client_controller=None):
x86ArchitectureTemplate.__init__(self, install_profile, client_controller)
self._architecture_name = 'amd64'
"""
def install_bootloader(self):
"Installs and configures bootloader"
#
# THIS IS ARCHITECTURE DEPENDANT!!!
# This is the amd64 way.. it uses grub but must do it staticly.
if self._install_profile.get_boot_loader_pkg():
exitstatus = self._portage.emerge(self._install_profile.get_boot_loader_pkg(), self._install_profile.get_grp_install())
else:
pass
if self._install_profile.get_boot_loader_pkg() == "grub":
self._install_grub()
else:
raise Exception("BootLoaderError",'fatal','install_bootloader',"Invalid bootloader selected:"+self._install_profile.get_boot_loader_pkg())
"""
def _configure_lilo(self):
raise Exception("BootLoaderError", "fatal", "_configure_lilo", "This function should *never* get called for amd64")
|