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