Blame SOURCES/0111-fcoe-move-uefi-parsing-to-fcoe-uefi-module.patch

712866
From 8bde20bc6553f306a549f80742995daad31baa55 Mon Sep 17 00:00:00 2001
712866
From: Harald Hoyer <harald@redhat.com>
712866
Date: Thu, 12 Dec 2013 09:20:53 +0100
712866
Subject: [PATCH] fcoe: move uefi parsing to fcoe-uefi module
712866
712866
---
712866
 modules.d/95fcoe-uefi/module-setup.sh              | 22 ++++++++++++++++++++++
712866
 .../{95fcoe => 95fcoe-uefi}/parse-uefifcoe.sh      |  0
712866
 modules.d/95fcoe/module-setup.sh                   |  1 -
712866
 3 files changed, 22 insertions(+), 1 deletion(-)
712866
 create mode 100755 modules.d/95fcoe-uefi/module-setup.sh
712866
 rename modules.d/{95fcoe => 95fcoe-uefi}/parse-uefifcoe.sh (100%)
712866
712866
diff --git a/modules.d/95fcoe-uefi/module-setup.sh b/modules.d/95fcoe-uefi/module-setup.sh
712866
new file mode 100755
5c6c2a
index 00000000..007aa59a
712866
--- /dev/null
712866
+++ b/modules.d/95fcoe-uefi/module-setup.sh
712866
@@ -0,0 +1,22 @@
712866
+#!/bin/bash
712866
+# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
712866
+# ex: ts=8 sw=4 sts=4 et filetype=sh
712866
+
712866
+# called by dracut
712866
+check() {
712866
+    [[ $hostonly ]] || [[ $mount_needs ]] && return 1
712866
+
712866
+    return 0
712866
+}
712866
+
712866
+# called by dracut
712866
+depends() {
712866
+    echo fcoe bash
712866
+    return 0
712866
+}
712866
+
712866
+# called by dracut
712866
+install() {
712866
+    inst_hook cmdline 20 "$moddir/parse-uefifcoe.sh"
712866
+}
712866
+
712866
diff --git a/modules.d/95fcoe/parse-uefifcoe.sh b/modules.d/95fcoe-uefi/parse-uefifcoe.sh
712866
similarity index 100%
712866
rename from modules.d/95fcoe/parse-uefifcoe.sh
712866
rename to modules.d/95fcoe-uefi/parse-uefifcoe.sh
712866
diff --git a/modules.d/95fcoe/module-setup.sh b/modules.d/95fcoe/module-setup.sh
5c6c2a
index 08ba4eac..d3c58cc6 100755
712866
--- a/modules.d/95fcoe/module-setup.sh
712866
+++ b/modules.d/95fcoe/module-setup.sh
712866
@@ -32,7 +32,6 @@ install() {
712866
     inst "$moddir/fcoe-up.sh" "/sbin/fcoe-up"
712866
     inst "$moddir/fcoe-edd.sh" "/sbin/fcoe-edd"
712866
     inst "$moddir/fcoe-genrules.sh" "/sbin/fcoe-genrules.sh"
712866
-    inst_hook cmdline 20 "$moddir/parse-uefifcoe.sh"
712866
     inst_hook cmdline 99 "$moddir/parse-fcoe.sh"
712866
     dracut_need_initqueue
712866
 }