5 if [ -z "$TARGET" -o ! -d "$TARGET" ]; then
6 echo "Missing target directory"
10 chroot "$TARGET" apt-get -qq update
11 chroot "$TARGET" apt-get -qq install vim ssh extlinux
13 hostname="$(hostname)"
14 sed -e "s#root@$hostname#root@$instance#" -i /etc/ssh/ssh*pub
16 if [ "$ARCH" = "amd64" ]; then
17 chroot "$TARGET" apt-get -qq install linux-image-amd64