From 8d34d3624943b324b4bcf8587e7bda43a641fb2d Mon Sep 17 00:00:00 2001 From: szorfein Date: Wed, 4 Oct 2017 15:55:57 +0200 Subject: [PATCH] install libgcc_s.so.1 for zfs #47 --- mkinitramfs-ll.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/mkinitramfs-ll.sh b/mkinitramfs-ll.sh index f64263a..b663abe 100755 --- a/mkinitramfs-ll.sh +++ b/mkinitramfs-ll.sh @@ -356,10 +356,20 @@ for bin in dmraid mdadm zfs; do done module_group="${module_group/mdadm/raid}" +installZfsLib() { + local _lib="libgcc_s.so.1" + local _cmd="$(find /usr/lib64 -type f | grep $_lib | sort -r | head -n 1)" + local _dest="usr/lib${LONG_BIT}" + + [ ! -f "$_dest/$_lib" ] && cp -a "$_cmd" "$_dest/" +} + # Set up (requested) hook for hook in ${hooks}; do for file in "${usrdir}"/../hooks/*${hook}*; do cp -a "${file}" lib/${package}/ + + [ $hook = "zfs" ] && installZfsLib done if [ ${?} != 0 ]; then warn "No $hook hook/script does not exist"