mirror of
https://github.com/clearlinux/clr-init.git
synced 2026-08-18 19:55:47 +00:00
Ensure we create deeper directories for libs
Also use "update" mode for cp instead of "no clobber" to reduce error messages.
This commit is contained in:
committed by
William Douglas
parent
3413228eee
commit
3c46c8af86
@@ -27,11 +27,12 @@ clr-init.cpio:
|
||||
mkdir -p initramfs/usr/lib64/glibc-hwcaps/x86-64-v4;\
|
||||
fi
|
||||
for file in $(BINFILES); do \
|
||||
mkdir -p initramfs/$$(dirname "$${file}"); \
|
||||
cp -fL $$file initramfs/$$file || exit 1;\
|
||||
if file $$file | grep -q ELF; then \
|
||||
for lddfile in $$(ldd $$file | awk '{print $$3}' | grep "^/"); do \
|
||||
file_path=$$(dirname $$lddfile); \
|
||||
cp -Ln $$lddfile initramfs/$$file_path/; \
|
||||
cp -Lu $$lddfile initramfs/$$file_path/; \
|
||||
done \
|
||||
fi \
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user