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
|
from bootloaderInfo import *
class ia64BootloaderInfo(efiBootloaderInfo):
def getBootloaderConfig(self, instRoot, bl, kernelList,
chainList, defaultDev):
config = bootloaderInfo.getBootloaderConfig(self, instRoot,
bl, kernelList, chainList,
defaultDev)
# altix boxes need relocatable (#120851)
config.addEntry("relocatable")
return config
def writeLilo(self, instRoot, bl, kernelList,
chainList, defaultDev, justConfig):
config = self.getBootloaderConfig(instRoot, bl,
kernelList, chainList, defaultDev)
config.write(instRoot + self.configfile, perms = 0755)
return ""
def write(self, instRoot, bl, kernelList, chainList,
defaultDev, justConfig, intf):
if len(kernelList) >= 1:
out = self.writeLilo(instRoot, bl, kernelList,
chainList, defaultDev, justConfig)
else:
self.noKernelsWarn(intf)
self.removeOldEfiEntries(instRoot)
self.addNewEfiEntry(instRoot)
def makeInitrd(self, kernelTag):
return "/boot/efi/EFI/redhat/initrd%s.img" % kernelTag
def __init__(self):
efiBootloaderInfo.__init__(self)
self._configname = "elilo.conf"
self._bootloader = "elilo.efi"
|