1 #!/bin/sh 2 # 3 # /usr/share/initrd-tools/scripts/e2fsprogs 4 # 5 cp /usr/share/e2fsprogs/initrd.ext3-add-journal \ 6 $INITRDDIR/scripts/ext3-add-journal.sh 7 cp /sbin/tune2fs $INITRDDIR/sbin 8 cp /usr/lib/e2initrd_helper $INITRDDIR/bin/e2initrd_helper 9 10 case "$VERSION" in 11 2.4.*) 12 case "uname -r" in 13 2.4.*) : ;; 14 *) LD_ASSUME_KERNEL=2.4.1 15 export LD_ASSUME_KERNEL 16 ;; 17 esac 18 ;; 19 esac 20 21 PROGS="/sbin/tune2fs /usr/lib/e2initrd_helper" 22 LIBS=`unset LD_LIBRARY_PATH LD_PRELOAD; ldd $PROGS | \ 23 grep -v 'linux-gate.so' | sort -u | awk '{print $3}'` 24 for i in $LIBS 25 do 26 if test -f /etc/ld.so.preload && grep -s ^$i\$ /etc/ld.so.preload; then 27 continue 28 fi 29 mkdir -p `dirname $INITRDDIR/$i` 30 cp $i $INITRDDIR/$i 31 done 32