|
|
|
@ -20,10 +20,10 @@ usage() {
|
|
|
|
|
--vbox use VirtualBox instead of kvm
|
|
|
|
|
|
|
|
|
|
The MIRROR_HOST environment variable can be used to change the
|
|
|
|
|
apt-cacher host. It should be something that the target VM can
|
|
|
|
|
resolve. It may be set to 127.0.0.1, in which case it will be
|
|
|
|
|
changed to 10.0.2.2 on the guest. 10.0.2.2 is the host IP as visible
|
|
|
|
|
from the guest under qemu networking.
|
|
|
|
|
apt-cacher host. It should be something that both the host and the
|
|
|
|
|
target VM can reach. It may be set to 127.0.0.1, in which case it will be
|
|
|
|
|
changed to 10.0.2.2 on the guest (or GITIAN_HOST_IP if it is defined)
|
|
|
|
|
10.0.2.2 is the host IP as visible from the guest under qemu networking.
|
|
|
|
|
EOF
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -104,6 +104,7 @@ if [ -e $OUT.qcow2 ]; then
|
|
|
|
|
exit 1
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
libexec/config-bootstrap-fixup
|
|
|
|
|
rm -rf $OUT
|
|
|
|
|
sudo vmbuilder kvm ubuntu --rootsize 10240 --arch=$ARCH --suite=$SUITE --addpkg=$addpkg --removepkg=$removepkg --ssh-key=var/id_dsa.pub --ssh-user-key=var/id_dsa.pub --mirror=$MIRROR --security-mirror=$SECURITY_MIRROR --dest=$OUT --flavour=$FLAVOUR --firstboot=`pwd`/target-bin/bootstrap-fixup
|
|
|
|
|
mv $OUT/*.qcow2 $OUT.qcow2
|
|
|
|
|