dd62cb6ebf
- 90kernel-modules: Ensure phy drivers are loaded in initrd (bsc#1034893) * adds 0519-90kernel-modules-Ensure-phy-drivers-are-loaded-in-in.patch - 90kernel-modules: Fix backlight on Cherrytrail devices (boo#1034785) * adds 0518-90kernel-modules-Fix-backlight-on-Cherrytrail-device.patch - 95fcoe: fix rules generation (osc#1036323) * adds 0517-95fcoe-fixup-fcoe-genrules.sh-for-VN2VN-mode.patch OBS-URL: https://build.opensuse.org/request/show/491555 OBS-URL: https://build.opensuse.org/package/show/Base:System/dracut?expand=0&rev=305
34 lines
1.6 KiB
Diff
34 lines
1.6 KiB
Diff
From c3c16d6b7c74cbd00d6e925f83c983f6e50cf7cd Mon Sep 17 00:00:00 2001
|
|
From: Hannes Reinecke <hare@suse.de>
|
|
Date: Wed, 26 Apr 2017 16:38:11 +0200
|
|
Subject: [PATCH] 95fcoe: fixup fcoe-genrules.sh for VN2VN mode
|
|
|
|
The 'mode' argument was never referenced in the printf format, causing
|
|
invalid rules to be written.
|
|
|
|
References: bsc#1036323
|
|
|
|
Signed-off-by: Hannes Reinecke <hare@suse.com>
|
|
---
|
|
modules.d/95fcoe/fcoe-genrules.sh | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/modules.d/95fcoe/fcoe-genrules.sh b/modules.d/95fcoe/fcoe-genrules.sh
|
|
index af15a584..5b16cb0d 100755
|
|
--- a/modules.d/95fcoe/fcoe-genrules.sh
|
|
+++ b/modules.d/95fcoe/fcoe-genrules.sh
|
|
@@ -7,8 +7,8 @@
|
|
# Write udev rules
|
|
{
|
|
if [ -n "$fcoe_mac" ] ; then
|
|
- printf 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="%s", RUN+="/sbin/initqueue --onetime --unique --name fcoe-up-$env{INTERFACE} /sbin/fcoe-up $env{INTERFACE} %s"\n' "$fcoe_mac" "$fcoe_dcb" "$fcoe_mode"
|
|
+ printf 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="%s", RUN+="/sbin/initqueue --onetime --unique --name fcoe-up-$env{INTERFACE} /sbin/fcoe-up $env{INTERFACE} %s %s"\n' "$fcoe_mac" "$fcoe_dcb" "$fcoe_mode"
|
|
else
|
|
- printf 'ACTION=="add", SUBSYSTEM=="net", NAME=="%s", RUN+="/sbin/initqueue --onetime --unique --name fcoe-up-$env{INTERFACE} /sbin/fcoe-up $env{INTERFACE} %s"\n' "$fcoe_interface" "$fcoe_dcb" "$fcoe_mode"
|
|
+ printf 'ACTION=="add", SUBSYSTEM=="net", NAME=="%s", RUN+="/sbin/initqueue --onetime --unique --name fcoe-up-$env{INTERFACE} /sbin/fcoe-up $env{INTERFACE} %s %s"\n' "$fcoe_interface" "$fcoe_dcb" "$fcoe_mode"
|
|
fi
|
|
} >> /etc/udev/rules.d/92-fcoe.rules
|
|
--
|
|
2.12.0
|
|
|