#!/bin/bash if [ `whoami` != root ]; then echo "This script must be run as root, e.g.:" echo "sudo $0" exit -1 fi if [ "$TYPE" == "" ]; then TYPE=handset fi RELEASE=latest ARCH=armv7l # create meego image from kickstart. this will contain everything but the kernel mic-image-creator --pkgmgr=yum --cache=../mycachedir --format=loop --arch=${ARCH} --release=${RELEASE} --compress-disk-image=none --config=${TYPE}-${ARCH}-beagle.ks echo echo "Some versions of mic throw an error regarding some file not being closed properly." echo "You can safely ignore this problem."