Blame SOURCES/0374-95iscsi-Install-libgcc_s-library.patch

712866
From 9eab750787d7e94e53df282119640a5d2beb04e4 Mon Sep 17 00:00:00 2001
712866
From: Hannes Reinecke <hare@suse.de>
712866
Date: Thu, 25 Feb 2016 20:58:10 +0800
712866
Subject: [PATCH] 95iscsi: Install libgcc_s library
712866
712866
iscsiuio is using pthread, which requires libgcc_s for
712866
pthread_cancel to work.
712866
Without this library iscsiuio will crash with SIGABRT.
712866
712866
References: bnc#881692
712866
712866
Signed-off-by: Hannes Reinecke <hare@suse.de>
712866
Signed-off-by: Thomas Renninger <trenn@suse.de>
712866
---
712866
 modules.d/95iscsi/module-setup.sh | 1 +
712866
 1 file changed, 1 insertion(+)
712866
712866
diff --git a/modules.d/95iscsi/module-setup.sh b/modules.d/95iscsi/module-setup.sh
5c6c2a
index 7ef0caa6..422bea72 100755
712866
--- a/modules.d/95iscsi/module-setup.sh
712866
+++ b/modules.d/95iscsi/module-setup.sh
712866
@@ -104,6 +104,7 @@ cmdline() {
712866
 install() {
712866
     inst_multiple umount iscsistart hostname iscsi-iname
712866
     inst_multiple -o iscsiuio
712866
+    inst_libdir_file 'libgcc_s.so*'
712866
     inst_hook cmdline 90 "$moddir/parse-iscsiroot.sh"
712866
     inst_hook cleanup 90 "$moddir/cleanup-iscsi.sh"
712866
     inst "$moddir/iscsiroot.sh" "/sbin/iscsiroot"