Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions kiwi/builder/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,7 @@ def _create_pxe_install_kernel_and_initrd(self) -> None:
if self.initrd_system == 'dracut':
self.boot_image_task.include_module('kiwi-dump')
self.boot_image_task.include_module('kiwi-dump-reboot')
self.boot_image_task.omit_module('kiwi-repart')
if self.root_filesystem_is_multipath is False:
self.boot_image_task.omit_module('multipath')
for mod in self.xml_state.get_installmedia_initrd_modules('add'):
Expand Down Expand Up @@ -452,6 +453,7 @@ def _create_iso_install_kernel_and_initrd(self) -> None:
if self.initrd_system == 'dracut':
self.boot_image_task.include_module('kiwi-dump')
self.boot_image_task.include_module('kiwi-dump-reboot')
self.boot_image_task.omit_module('kiwi-repart')
if self.root_filesystem_is_multipath is False:
self.boot_image_task.omit_module('multipath')
for mod in self.xml_state.get_installmedia_initrd_modules('add'):
Expand Down
5 changes: 3 additions & 2 deletions test/unit/builder/install_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,8 @@ def side_effect(prefix, path):
self.boot_image_task.include_driver.assert_any_call('driver1')
self.boot_image_task.include_driver.assert_any_call('driver2')
assert self.boot_image_task.omit_module.call_args_list == [
call('multipath'), call('module1'), call('module2')
call('kiwi-repart'), call('multipath'),
call('module1'), call('module2')
]
self.boot_image_task.set_static_modules.assert_called_once_with(
['module1', 'module2']
Expand Down Expand Up @@ -450,7 +451,7 @@ def test_create_install_pxe_archive(
self.boot_image_task.include_driver.assert_any_call('driver1')
self.boot_image_task.include_driver.assert_any_call('driver2')
assert self.boot_image_task.omit_module.call_args_list == [
call('multipath'), call('module1'), call('module2')
call('kiwi-repart'), call('multipath'), call('module1'), call('module2')
]
self.boot_image_task.set_static_modules.assert_called_once_with(
['module1', 'module2']
Expand Down