]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
kernel-modules/module-setup.sh:installkernel() fix return code
authorHarald Hoyer <harald@redhat.com>
Fri, 22 Jun 2012 13:32:15 +0000 (15:32 +0200)
committerHarald Hoyer <harald@redhat.com>
Fri, 29 Jun 2012 10:41:26 +0000 (12:41 +0200)
modules.d/90kernel-modules/module-setup.sh

index 1d39c854488e91902c7dc4460b4b4bc95fd6c8f8..08f745aaa2be485004508bc1d6ff225118315df6 100755 (executable)
@@ -16,6 +16,7 @@ installkernel() {
                     *.ko.xz) [[ $(xz -dc   <$_f) =~ $_blockfuncs ]] && echo "$_f" ;;
                     esac
                 done
+                return 0
             }
             function rotor() {
                 local _f1 _f2
@@ -25,12 +26,15 @@ installkernel() {
                         echo "$_f2" 1>&${_side2}
                     fi
                 done | bmf1 1>&${_merge}
+                return 0
             }
             # Use two parallel streams to filter alternating modules.
             set +x
             eval "( ( rotor ) ${_side2}>&1 | bmf1 ) ${_merge}>&1"
             [[ $debug ]] && set -x
+            return 0
         }
+
         hostonly='' instmods sr_mod sd_mod scsi_dh scsi_dh_rdac scsi_dh_emc ata_piix
         hostonly='' instmods pcmcia firewire-ohci
         hostonly='' instmods usb_storage sdhci sdhci-pci