summaryrefslogtreecommitdiff
path: root/beagle/build_image.sh
blob: 37b9c80a1f255906011e7c4bce7a27d46cf0f839 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/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."