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:
Brett T. Warden
2023-10-30 09:32:37 -07:00
committed by William Douglas
parent 3413228eee
commit 3c46c8af86
+2 -1
View File
@@ -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