Return to fix_ldconfig CVS log | Up to [local] / openbsd / fill_chroot |
File: [local] / openbsd / fill_chroot / fix_ldconfig (download)
Revision 1.8, Tue Sep 16 22:44:51 2008 UTC (15 years, 9 months ago) by andrew
just put ldconfig in the root of the chroot. It doesn't hurt (since we delete it after) and then we don't have to mkdir ${CHROOT}/bin |
#!/bin/sh # $RedRiver: fix_ldconfig,v 1.7 2008/09/16 22:14:28 andrew Exp $ if [ X"${CHROOT}" == X"" ]; then echo No CHROOT Specified! exit 255 fi mkdir -p ${CHROOT}/var/run for p in /usr/lib /usr/X11R6/lib /usr/local/lib; do if [ -d ${CHROOT}${p} ]; then LD_PATH="${LD_PATH} ${p}" fi done if [ ! X"${LD_PATH}" == X"" ]; then cp /sbin/ldconfig ${CHROOT} echo running: ldconfig ${LD_PATH} chroot ${CHROOT} ldconfig ${LD_PATH} #chroot ${CHROOT} ldconfig -r rm -f ${CHROOT}/ldconfig fi