Skip to content

Commit

Permalink
install libgcc_s.so.1 for zfs #47
Browse files Browse the repository at this point in the history
  • Loading branch information
szorfein committed Oct 4, 2017
1 parent 14ec233 commit 8d34d36
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions mkinitramfs-ll.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 8d34d36

Please sign in to comment.