Skip to content

Commit

Permalink
fix(systemd): explictly install some libs that will not be statically…
Browse files Browse the repository at this point in the history
… included

Some required libraries that used to be statically included are in the process
to be opened via `dlopen()`.

Closes dracutdevs#2642
  • Loading branch information
aafeijoo-suse committed Apr 1, 2024
1 parent 5d2bda4 commit f08beef
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions modules.d/00systemd/module-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,8 @@ EOF
# Install library file(s)
_arch=${DRACUT_ARCH:-$(uname -m)}
inst_libdir_file \
{"tls/$_arch/",tls/,"$_arch/",}"libgcrypt.so*" \
{"tls/$_arch/",tls/,"$_arch/",}"libkmod.so*" \
{"tls/$_arch/",tls/,"$_arch/",}"libnss_*"

}
5 changes: 3 additions & 2 deletions modules.d/01systemd-journald/module-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,10 @@ install() {
# Install library file(s)
_arch=${DRACUT_ARCH:-$(uname -m)}
inst_libdir_file \
{"tls/$_arch/",tls/,"$_arch/",}"libgcrypt.so*" \
{"tls/$_arch/",tls/,"$_arch/",}"liblz4.so.*" \
{"tls/$_arch/",tls/,"$_arch/",}"libzstd.so.*" \
{"tls/$_arch/",tls/,"$_arch/",}"liblzma.so.*"
{"tls/$_arch/",tls/,"$_arch/",}"liblzma.so.*" \
{"tls/$_arch/",tls/,"$_arch/",}"libzstd.so.*"

# Install the hosts local user configurations if enabled.
if [[ $hostonly ]]; then
Expand Down

0 comments on commit f08beef

Please sign in to comment.