diff -Naur --suppress-common-lines a/gen_initramfs.sh b/gen_initramfs.sh --- a/gen_initramfs.sh 2019-07-02 13:37:14.353308690 +0100 +++ b/gen_initramfs.sh 2019-07-02 13:37:40.499975067 +0100 @@ -632,13 +632,21 @@ mkdir -p "${TEMP}/initramfs-luks-temp/sbin" cd "${TEMP}/initramfs-luks-temp" + local libgccpath + if type gcc-config 2>&1 1>/dev/null; then + libgccpath="/usr/lib/gcc/$(s=$(gcc-config -c); echo ${s%-*}/${s##*-})/libgcc_s.so.1" + fi + if [[ ! -f ${libgccpath} ]]; then + libgccpath="/usr/lib/gcc/*/*/libgcc_s.so.1" + fi + if isTrue ${LUKS} then [ -x "${_luks_source}" ] \ || gen_die "$(printf "${_luks_error_format}" "no file ${_luks_source}")" print_info 1 "Including LUKS support" - copy_binaries "${TEMP}/initramfs-luks-temp/" /sbin/cryptsetup + copy_binaries "${TEMP}/initramfs-luks-temp/" /sbin/cryptsetup ${libgccpath} fi log_future_cpio_content