#!/bin/bash
# 
# chroot to installdir and prelink

 . /etc/kadischi/build.conf

CHROOTDIR=$BUILDDIR/livecd-build_no$BUILDNUM/system

if [ -f $CHROOTDIR/etc/prelink.conf ]; then
   chroot $CHROOTDIR /usr/sbin/prelink -a -N
   exit 0
else
   echo "No prelink.conf found.. won't prelink."
   exit 0
fi
