#!/bin/sh PATH=/sbin:$PATH export PATH BASEDIR=hdimage SIZE=4096 MNTPOINT=/tmp/mkimage.mnt-$$ IMAGE=../../../RedHat/base/stage2.img IMAGENOGZ=/tmp/`basename $IMAGE`.nogz rm -f $IMAGENOGZ rm -f $IMAGE dd if=/dev/zero of=$IMAGENOGZ bs=1k count=$SIZE mke2fs -i 8096 -q $IMAGENOGZ $SIZE < $IMAGE echo " done." exit 0 rm -rf $MNTPOINT $IMAGENOGZ