]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
chore: remove redundant call to is_qemu_virtualized
authorJo Zzsi <jozzsicsataban@gmail.com>
Sun, 8 Feb 2026 14:46:49 +0000 (09:46 -0500)
committerBenjamin Drung <bdrung@ubuntu.com>
Sun, 8 Feb 2026 20:08:28 +0000 (21:08 +0100)
The qemu dracut module check function already calls is_qemu_virtualized
to determine the enviroment dracut is called in.

Checking if the qemu dracut module is included already transitively calls
is_qemu_virtualized.

modules.d/70qemu-net/module-setup.sh
modules.d/74virtfs/module-setup.sh
modules.d/74virtiofs/module-setup.sh

index 9699a3b965f32ad3cf3259be5c201080c929f18f..302c0420bf6869a7f76e73f7f75590c9e3d61880 100755 (executable)
@@ -7,8 +7,6 @@ check() {
         return 0
     fi
 
-    is_qemu_virtualized && return 0
-
     if [[ $hostonly ]] || [[ $mount_needs ]]; then
         return 255
     fi
index d8c618f4a33841610baaf6503eb91f8562b32ae5..9816937578308ce173f5149c2fd24dcf1e66ead1 100755 (executable)
@@ -13,8 +13,6 @@ check() {
         return 255
     }
 
-    is_qemu_virtualized && return 0
-
     return 255
 }
 
index b9f107e98831945f601f6884320e20c2635fa839..f8dbd65f48c185e0d4d8e674d28106ced1477189 100755 (executable)
@@ -7,8 +7,6 @@ check() {
     fi
 
     [[ $hostonly ]] || [[ $mount_needs ]] && {
-        is_qemu_virtualized && return 0
-
         for fs in "${host_fs_types[@]}"; do
             [[ $fs == "virtiofs" ]] && return 0
         done