blob: 3ff9ee17b320360d36687006ad149d4cb3187c03 [file] [log] [blame]
#!/bin/sh
cd
[ "${IDENT}" ] || IDENT=$(mktemp -u XXXXXXXX)
CCACHE=.ccache/anita-${IDENT}.img
[ -f ${CCACHE} ] || zcat cache.img.gz >${CCACHE}
if [ $# -eq 0 ]; then
exec anita --vmm-args "-hdb ${CCACHE}" --memory-size=${MEM_SIZE} \
interact ${INST_IMG}
else
exec anita --vmm-args "-hdb ${CCACHE}" --memory-size=${MEM_SIZE} \
--persist --run ". ./init && manitest \"$*\"" \
boot ${INST_IMG}
fi