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