Blame 0066-fcoe-move-uefi-parsing-to-fcoe-uefi-module.patch

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