#!/bin/sh

DISKSIZE=1600
MEEGOVER=1.2.0
ARMVER=armv7hl
#ARMVER=armv5tel
PANDA=panda

sed \
-e "s/%DISKSIZE%/${DISKSIZE}/g" \
-e "s/%MEEGOVER%/${MEEGOVER}/g" \
-e "s/%ARMVER%/${ARMVER}/g" \
Panda.ks.in > ${PANDA}.ks

sudo mic-image-creator --config=${PANDA}.ks --format=fs --cache=rpms --outdir=${HOME} --suffix=rootfs --arch=${ARMVER} --record-pkgs=name  --pkgmgr=yum
#sudo mic-image-creator --config=${PANDA}.ks --format=fs --cache=rpms --outdir=${HOME} --suffix=rootfs --arch=${ARMVER} --record-pkgs=name --pkgmgr=zypper
