#!/bin/sh
# helper that generates a minimal environment for testing the upgrade
# script functionatlity

VM=kvm
SUITE=hardy
ARCH=$(dpkg --print-architecture)
SIZE=80000
MEM=384

# this builds a bootable vm that is big enough,
# the clone-helper.sh does all the heavy lifting
ubuntu-vm-builder $VM $SUITE \
    --arch $ARCH \
    --rootsize $SIZE \
    --mem $MEM \
    --addpkg update-manager-core \
    -d vm-auto-upgrade-test  \
    --ssh-key /var/lib/sandbox-upgrader/ssh/sshkey.pub \
    "$@"

