From b3f00945d206532074373be2c5f5956810db4f15 Mon Sep 17 00:00:00 2001 From: "Alex Xu (Hello71)" Date: Sat, 20 Aug 2022 09:44:33 -0400 Subject: fix for new glibc, sort by path instead of type --- make | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/make b/make index ad7443a..b33b070 100755 --- a/make +++ b/make @@ -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 -- cgit v1.2.3-70-g09d2