diff options
author | Aaron Ball <nullspoon@oper.io> | 2019-05-21 09:47:01 -0600 |
---|---|---|
committer | Aaron Ball <nullspoon@oper.io> | 2019-05-21 09:47:01 -0600 |
commit | 3bfd1fe6f11acdc0ce9cac20c91e60909a8a84de (patch) | |
tree | 8508f342f71aaba00f419bb8d6963077a08a863d | |
parent | b8c553301f8d6ca9e4e237923a8aaf1efa1cac84 (diff) | |
download | mkinitramfs-3bfd1fe6f11acdc0ce9cac20c91e60909a8a84de.tar.gz mkinitramfs-3bfd1fe6f11acdc0ce9cac20c91e60909a8a84de.tar.xz |
mkinitramfs:include libgcc_s in initramfs
The new version 2 of cryptsetup requires libgcc_s.so to be installed at
decrypt time, or the following error message will occur:
libgcc_s.so.1 must be installed for pthread_cancel to work
Note that this only affects luks containers using the new version 2
spec. Version 1 containers use a different process that does not require
libgcc_s.
-rwxr-xr-x | mkinitramfs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mkinitramfs b/mkinitramfs index 9a6fadf..fe60b4c 100755 --- a/mkinitramfs +++ b/mkinitramfs @@ -210,6 +210,10 @@ function main { # Ensure static crypto support exists in kernel check_crypto_support ${version} + # Copy in libgcc_s for newer cryptsetup + install -v -D /usr/lib/libgcc_s.so "${cache}/usr/lib/libgcc_s.so" + install -v -D /usr/lib/libgcc_s.so.1 "${cache}/usr/lib/libgcc_s.so.1" + # Copy binary and dependencies to cache dir for bin in ${fqbins[@]}; do # Copy the binary of interest |