Make the copying of the files to create the folders if not exists

Signed-off-by: Josue David Hernandez Gutierrez <josue.d.hernandez.gutierrez@intel.com>
This commit is contained in:
Josue David Hernandez Gutierrez
2019-05-31 15:40:22 -05:00
parent 7b3fc2cac6
commit b77bb914eb
2 changed files with 4 additions and 4 deletions
+4 -3
View File
@@ -9,20 +9,21 @@ all: $(TARGET)
gzip -9 $<
clr-init.cpio:
set -e;
mkdir -p initramfs/{sys,dev,proc,tmp,var,sysroot,usr/sbin,usr/bin,usr/lib/systemd/system-generators,usr/lib64,usr/lib64/multipath,run,root}
if [ -d /usr/lib64/haswell/ ]; then \
mkdir -p initramfs/usr/lib64/haswell;\
fi
for file in $(BINFILES); do \
cp -f $$file initramfs/$$file;\
cp -fa $$file initramfs/$$file;\
done
for file in $$(ldd $(BINFILES) | awk '{print $$3}' | grep "^/" | sort | uniq); do \
file_path=$$(dirname $$file); \
cp $$file initramfs/$$file_path/; \
cp -a $$file initramfs/$$file_path/; \
done
if [ -d /usr/lib64/haswell/ ]; then \
for lib in $$(ls initramfs/usr/lib64/haswell/); do \
cp /usr/lib64/$$lib initramfs/usr/lib64/ ; \
cp -a /usr/lib64/$$lib initramfs/usr/lib64/ ; \
done \
fi
( cd initramfs && \
-1
View File
@@ -130,7 +130,6 @@
/usr/bin/modprobe
/usr/lib/udev/ata_id
/usr/lib/udev/cdrom_id
/usr/lib/udev/collect
/usr/lib/udev/hid2hci
/usr/lib/udev/kpartx_id
/usr/lib/udev/libinput-device-group