fix: we have to build our own openssl to use standard paths
This commit is contained in:
parent
4ecf8ead2a
commit
5ecfd546f6
5 changed files with 176 additions and 3 deletions
pkgs/rootfs
|
@ -115,6 +115,10 @@ EOF
|
|||
### install PatOS glibc
|
||||
cp -P $glibcPatos/lib/*.so* $out/usr/lib/
|
||||
|
||||
### install openssl
|
||||
cp -P $openssl/usr/lib/*.so* $out/usr/lib/
|
||||
cp -Pr $openssl/etc/ssl $out/etc/
|
||||
|
||||
### install kernel modules
|
||||
cp -r $kernel/lib/modules $out/usr/lib/
|
||||
find $out/usr/lib/modules -type d -exec chmod 755 {} \;
|
||||
|
@ -149,7 +153,8 @@ cp -P $kmodBin/bin/* $out/usr/bin
|
|||
cp -P $libbpf/lib/libbpf* $out/usr/lib
|
||||
|
||||
### install ca cert bundle
|
||||
cp -Pr $cacert/etc/ssl $out/etc/
|
||||
chmod 755 $out/etc/ssl
|
||||
cp -P $cacert/etc/ssl/certs/ca-bundle.crt $out/etc/ssl/cert.pem
|
||||
|
||||
# setup default files
|
||||
$systemd/usr/bin/systemd-hwdb --root=$out --usr update
|
||||
|
@ -166,7 +171,7 @@ rm -rf $out/usr/lib/pkgconfig
|
|||
|
||||
### Find and install all shared libs
|
||||
find $out -type f -executable -exec ldd {} \; | awk '{print $3}' | \
|
||||
grep -v systemd | grep -v glibc | grep -v tpm2 | grep -v devmapper | \
|
||||
grep -v systemd | grep -v glibc | grep -v openssl | grep -v tpm2 | grep -v devmapper | grep -v not | \
|
||||
sort -u | xargs -I {} cp {} $out/usr/lib/
|
||||
|
||||
find $out -type f -executable -exec chmod 755 {} \;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue