21 lines
569 B
Bash
21 lines
569 B
Bash
|
# 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
|