diff options
-rw-r--r-- | init | 1 | ||||
-rwxr-xr-x | make | 4 |
2 files changed, 3 insertions, 2 deletions
@@ -32,6 +32,7 @@ e2fsck -C 0 -E inode_count_fullmap -p /dev/mapper/root || exit mount -o nodev /dev/mapper/root /mnt || exit kill -9 -1 +wait cd /mnt || exit if [ -n "$autologin" ]; then @@ -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 |