summaryrefslogtreecommitdiff
path: root/beagle/build_image.sh
diff options
context:
space:
mode:
Diffstat (limited to 'beagle/build_image.sh')
-rw-r--r--beagle/build_image.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/beagle/build_image.sh b/beagle/build_image.sh
new file mode 100644
index 0000000..37b9c80
--- /dev/null
+++ b/beagle/build_image.sh
@@ -0,0 +1,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."