makedist-openmamba-milestone3/platforms/sdk-root/pre.inc.sh.bak

21 lines
569 B
Bash
Raw Normal View History

2011-05-19 16:02:37 +02:00
# produce archive image for embedded root filesystem
#
MEDIA_NAME=`media_name`
# embedded target
create_rpm_database
install_rpms "$INSTALL_PACKAGES" "--nodeps --noorder --noscripts"
INSTALLED=$INSTALL_PACKAGES
[ "$MOUNTDIR" -a "$MOUNTDIR" != "/" ] && rm -rf $MOUNTDIR/var/lib/rpm
# copy static files for specific platform
[ -e $TARGETDIR/platforms/$PLATFORM/root ] &&
cp -a $TARGETDIR/platforms/$PLATFORM/root/* $MOUNTDIR/
produce_media
echo "- generating MD5 sum for ${MEDIA_NAME}"
md5sum $LOCALSTATEDIR/$MEDIA_NAME > $LOCALSTATEDIR/.$MEDIA_NAME.MD5
exit 0