Lines 632-644
Link Here
|
632 |
mkdir -p "${TEMP}/initramfs-luks-temp/sbin" |
632 |
mkdir -p "${TEMP}/initramfs-luks-temp/sbin" |
633 |
cd "${TEMP}/initramfs-luks-temp" |
633 |
cd "${TEMP}/initramfs-luks-temp" |
634 |
|
634 |
|
|
|
635 |
local libgccpath |
636 |
if type gcc-config 2>&1 1>/dev/null; then |
637 |
libgccpath="/usr/lib/gcc/$(s=$(gcc-config -c); echo ${s%-*}/${s##*-})/libgcc_s.so.1" |
638 |
fi |
639 |
if [[ ! -f ${libgccpath} ]]; then |
640 |
libgccpath="/usr/lib/gcc/*/*/libgcc_s.so.1" |
641 |
fi |
642 |
|
635 |
if isTrue ${LUKS} |
643 |
if isTrue ${LUKS} |
636 |
then |
644 |
then |
637 |
[ -x "${_luks_source}" ] \ |
645 |
[ -x "${_luks_source}" ] \ |
638 |
|| gen_die "$(printf "${_luks_error_format}" "no file ${_luks_source}")" |
646 |
|| gen_die "$(printf "${_luks_error_format}" "no file ${_luks_source}")" |
639 |
|
647 |
|
640 |
print_info 1 "Including LUKS support" |
648 |
print_info 1 "Including LUKS support" |
641 |
copy_binaries "${TEMP}/initramfs-luks-temp/" /sbin/cryptsetup |
649 |
copy_binaries "${TEMP}/initramfs-luks-temp/" /sbin/cryptsetup ${libgccpath} |
642 |
fi |
650 |
fi |
643 |
|
651 |
|
644 |
log_future_cpio_content |
652 |
log_future_cpio_content |