clarify workarounds

This commit is contained in:
illiliti 2020-02-23 13:57:48 +03:00
parent 525d87cd89
commit ec2dedc461

View File

@ -173,13 +173,14 @@ install_luks() {
luks_drivers="aes dm-crypt sha256 sha512 wp512 ecb lrw xts twofish serpent" luks_drivers="aes dm-crypt sha256 sha512 wp512 ecb lrw xts twofish serpent"
[ "$hostonly" = 1 ] && install_driver "$luks_drivers" [ "$hostonly" = 1 ] && install_driver "$luks_drivers"
# avoid "locking directory missing" warning message # avoid "locking directory missing" warning message and libgcc_s.so.1 missing error
# see https://bugs.archlinux.org/task/56771
mkdir "${wrkdir}/run/cryptsetup" mkdir "${wrkdir}/run/cryptsetup"
# TODO get rid of this workaround [ -e /usr/lib/libgcc_s.so.1 ] && {
# TODO fix static binary install -s -m755 /usr/lib/libgcc_s.so.1 -t "${wrkdir}/usr/lib" ||
# workaround for luks2 msg panic "failed to install LUKS libraries"
install -s -m755 /usr/lib/libgcc_s.so.1 -t "${wrkdir}/usr/lib" || msg panic "failed to install LUKS libraries" }
# copy luks header # copy luks header
[ -f "$luks_header" ] && { [ -f "$luks_header" ] && {