? genkernel-busybox_links.patch Index: gen_compile.sh =================================================================== RCS file: /var/cvsroot/gentoo/src/genkernel_bradmssw/gen_compile.sh,v retrieving revision 1.32 diff -u -B -r1.32 gen_compile.sh --- gen_compile.sh 1 Mar 2005 10:50:43 -0000 1.32 +++ gen_compile.sh 1 Mar 2005 21:10:25 -0000 @@ -271,6 +271,7 @@ gen_die 'bzip2 compression of busybox failed!' mv "${TEMP}/${BUSYBOX_DIR}/busybox.bz2" "${BUSYBOX_BINCACHE}" || gen_die 'Could not copy the busybox binary to the package directory, does the directory exist?' + mv "${TEMP}/${BUSYBOX_DIR}/busybox.links" "${CACHE}" || gen_die 'Could not copy busybox symlinks file' cd "${TEMP}" rm -rf "${BUSYBOX_DIR}" > /dev/null Index: gen_initrd.sh =================================================================== RCS file: /var/cvsroot/gentoo/src/genkernel_bradmssw/gen_initrd.sh,v retrieving revision 1.34 diff -u -B -r1.34 gen_initrd.sh --- gen_initrd.sh 17 Feb 2005 01:46:47 -0000 1.34 +++ gen_initrd.sh 1 Mar 2005 21:10:25 -0000 @@ -162,12 +162,10 @@ fi fi - for i in '[' ash basename cat chroot clear cp dirname echo env false find \ - grep gunzip gzip ln ls loadkmap losetup lsmod mkdir mknod more mount mv \ - pivot_root ps awk pwd rm rmdir rmmod sed sh sleep tar test touch true umount uname \ - xargs yes zcat chmod chown cut kill killall; do + for i in `sort ${CACHE}/busybox.links | uniq`; do rm -f ${TEMP}/initrd-temp/bin/$i > /dev/null - ln ${TEMP}/initrd-temp/bin/busybox ${TEMP}/initrd-temp/bin/$i || + print_info 2 "Linking /bin/busybox to $i" + ln ${TEMP}/initrd-temp/bin/busybox ${TEMP}/initrd-temp/$i || gen_die "Busybox error: could not link ${i}!" done }