File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
libvirt/tests/src/virtual_disks Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 2121from virttest import data_dir
2222from virttest import utils_selinux
2323from virttest import utils_package
24+ from virttest import utils_sys
2425
2526from virttest .utils_test import libvirt
2627from virttest .utils_config import LibvirtQemuConfig
@@ -1095,8 +1096,10 @@ def check_info_in_libvird_log_file(matchedMsg=None):
10951096 guest_arch_name = arch )
10961097 if add_disk_driver :
10971098 # Ignore errors here
1098- session .cmd ("dracut --force --add-drivers '%s'"
1099- % add_disk_driver , timeout = 360 )
1099+ image_mode = utils_sys .is_image_mode (session = session )
1100+ if not image_mode :
1101+ session .cmd ("dracut --force --add-drivers '%s'"
1102+ % add_disk_driver , timeout = 360 )
11001103 # In terms of s390x, additional step is needed for normal guest
11011104 # boot, see https://bugzilla.redhat.com/show_bug.cgi?id=2214147
11021105 if arch == 's390x' :
You can’t perform that action at this time.
0 commit comments