diff options
author | Alex Xu (Hello71) <alex_y_xu@yahoo.ca> | 2022-08-20 09:44:33 -0400 |
---|---|---|
committer | Alex Xu (Hello71) <alex_y_xu@yahoo.ca> | 2022-08-20 09:44:33 -0400 |
commit | b3f00945d206532074373be2c5f5956810db4f15 (patch) | |
tree | b967c0e40c6f1b46b0f5c2c56d8e45f8f9cca4d4 /make | |
parent | 6b04052af291e146a71100112f494134a6fbc486 (diff) | |
download | minitramfs-master.tar.xz minitramfs-master.zip |
Diffstat (limited to 'make')
-rwxr-xr-x | make | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -6,7 +6,7 @@ gen_cmd() { printf 'file %s %s 0755 0 0\n' "$cmdp" "$cmdp" # ELF interpreter handled in cpio_list.txt - ldd "$cmdp" | awk '/=>/ { print "file /lib64/" $1 " " $3 " 0755 0 0" }' + ldd "$cmdp" | awk '$3~/^\// { print "file /lib64/" $1 " " $3 " 0755 0 0" }' } # generate the main file list @@ -41,4 +41,4 @@ gen_depfile() { ' } -gen_cpio_list | gen_dir_ents | sort -u | gen_depfile 3>initramfs.d | ./gen_init_cpio -t 0 - | $COMPRESSOR > initramfs.img +gen_cpio_list | gen_dir_ents | sort -uk2 | gen_depfile 3>initramfs.d | ./gen_init_cpio -t 0 - | $COMPRESSOR > initramfs.img |