File 0203-no-fail-builtin-module.patch of Package dracut.12460

From a7996e5e33c0456c96764dfb1ab35c0a59134ccc Mon Sep 17 00:00:00 2001
From: Fabian Vogt <fvogt@suse.com>
Date: Tue, 3 Nov 2015 16:29:21 +0100
Subject: [PATCH] Don't let inst1mod fail if module is built-in

- Fixes bsc#935563

Signed-off-by: Fabian Vogt <fvogt@suse.com>
---
 dracut-init.sh | 5 +++++
 1 file changed, 5 insertions(+)

Index: dracut-044/dracut-init.sh
===================================================================
--- dracut-044.orig/dracut-init.sh	2016-04-14 14:12:39.421377052 +0200
+++ dracut-044/dracut-init.sh	2016-04-14 14:58:46.285764636 +0200
@@ -1129,6 +1129,11 @@ instmods() {
                     return 0
                 fi
 
+                if grep -q "/${_mod}.ko" /lib/modules/$kernel/modules.builtin; then
+                    # Module is built-in
+                    return 0
+                fi
+
                 # If we are building a host-specific initramfs and this
                 # module is not already loaded, move on to the next one.
                 [[ $hostonly ]] \
openSUSE Build Service is sponsored by