Add support for <bootloader name="zipl" .../> to support BLS based zipl configuration. This Fixes #2481
29 lines
779 B
Python
29 lines
779 B
Python
from kiwi.bootloader.template.zipl import BootLoaderTemplateZipl
|
|
|
|
|
|
class TestBootLoaderTemplateZipl:
|
|
def setup(self):
|
|
self.zipl = BootLoaderTemplateZipl()
|
|
|
|
def setup_method(self, cls):
|
|
self.setup()
|
|
|
|
def test_get_loader_template(self):
|
|
assert self.zipl.get_loader_template().substitute(
|
|
boot_timeout='10',
|
|
bootpath='/boot',
|
|
targetbase='',
|
|
targettype='SCSI',
|
|
targetblocksize='512',
|
|
targetoffset='2048',
|
|
targetgeometry=''
|
|
)
|
|
|
|
def test_get_entry_template(self):
|
|
assert self.zipl.get_entry_template().substitute(
|
|
title='title',
|
|
boot_options='',
|
|
kernel_file='linux',
|
|
initrd_file='initrd'
|
|
)
|