Size options for production disk generator

This commit is contained in:
Kevin Lange 2013-04-07 16:20:36 -07:00
parent 26992a0f22
commit 4cc68c7e99

View File

@ -16,8 +16,15 @@ fi
DISK=toaru-disk.img
SRCDIR=$1
BOOT=./boot
SIZE=262144
echo "I will create partitioned, ext2 disk image at $DISK from files in $SRCDIR as well as boot scripts in $BOOT"
echo "Please select a disk size."
read -p "l for 1GB, s for 256MB: "
if [ "$REPLY" == "small" ] ; then
SIZE=65536
fi
echo "I will create partitioned, ext2 disk image of size $SIZE x 4KB at $DISK from files in $SRCDIR as well as boot scripts in $BOOT"
read -p "Is this correct? (Y/n)"
if [ "$REPLY" == "n" ] ; then
echo "Oh, okay, never mind then."