diff options
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 |