From 1a34162f6878a0751e692b0695f3e8f66f220d66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20Sch=C3=A4fer?= Date: Wed, 6 May 2026 10:28:49 +0200 Subject: [PATCH] Do not hardcode dracut omit module in live builder This is a relict from the old days when the pure presence of multipath in a live ISO caused issues at boot time. kiwi should not maintain a hardcoded list of dracut modules except for those that are mandatory for live boot, if there should be any special setting needed it should come from an overlay setup in /etc/dracut.conf.d/*.conf as part of the image description. This is related to bsc#1260340 --- kiwi/builder/live.py | 4 +--- test/unit/builder/live_test.py | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/kiwi/builder/live.py b/kiwi/builder/live.py index 31a00ed7f36..4cb4916685a 100644 --- a/kiwi/builder/live.py +++ b/kiwi/builder/live.py @@ -473,11 +473,9 @@ def create_live_iso_boot_images( ) + modules for dracut_module in live_dracut_modules: self.boot_image.include_module(dracut_module) - self.boot_image.omit_module('multipath') self.boot_image.write_system_config_file( config={ - 'modules': live_dracut_modules, - 'omit_modules': ['multipath'] + 'modules': live_dracut_modules }, config_file=self.root_dir + '/etc/dracut.conf.d/02-livecd.conf' ) diff --git a/test/unit/builder/live_test.py b/test/unit/builder/live_test.py index 42e8b289e00..b585d37f6a3 100644 --- a/test/unit/builder/live_test.py +++ b/test/unit/builder/live_test.py @@ -565,11 +565,9 @@ def side_effect(): assert self.boot_image_task.include_module.call_args_list == [ call('kiwi-live'), call('pollcdrom') ] - self.boot_image_task.omit_module.assert_called_once_with('multipath') self.boot_image_task.write_system_config_file.assert_called_once_with( config={ - 'modules': ['kiwi-live', 'pollcdrom'], - 'omit_modules': ['multipath'] + 'modules': ['kiwi-live', 'pollcdrom'] }, config_file='root_dir/etc/dracut.conf.d/02-livecd.conf' )