summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Xu (Hello71) <alex_y_xu@yahoo.ca>2022-08-20 09:44:33 -0400
committerAlex Xu (Hello71) <alex_y_xu@yahoo.ca>2022-08-20 09:44:33 -0400
commitb3f00945d206532074373be2c5f5956810db4f15 (patch)
treeb967c0e40c6f1b46b0f5c2c56d8e45f8f9cca4d4
parent6b04052af291e146a71100112f494134a6fbc486 (diff)
downloadminitramfs-b3f00945d206532074373be2c5f5956810db4f15.tar.xz
minitramfs-b3f00945d206532074373be2c5f5956810db4f15.zip
fix for new glibc, sort by path instead of typeHEADmaster
-rwxr-xr-xmake4
1 files 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