diff --git a/ubuntu-unclound-image.sh b/ubuntu-unclound-image.sh index ee113ea..61edc7c 100755 --- a/ubuntu-unclound-image.sh +++ b/ubuntu-unclound-image.sh @@ -11,9 +11,10 @@ set -x # XXX: Handle command-line arguments? RELEASE=eoan # 19.10 ARCH=amd64 -IMAGE_PATH=ubuntu-$RELEASE-$(date --iso-8601).img.qcow2 +IMAGE_PATH=ubuntu-uncloud-$RELEASE-$(date --iso-8601).img.qcow2 IMAGE_SIZE=10G NBD_DEVICE=/dev/nbd0 +APT_MIRROR=http://archive.ubuntu.com/ubuntu/ cleanup() { # The order here is important. @@ -73,7 +74,7 @@ mount "${NBD_DEVICE}p1" /mnt/boot debootstrap \ --arch=$ARCH $RELEASE \ - /mnt http://archive.ubuntu.com/ubuntu/ + /mnt "$APT_MIRROR" mount --bind /dev /mnt/dev mount --bind /dev/pts /mnt/dev/pts @@ -94,15 +95,15 @@ EOF # Configure package sources and update package index. cat >/mnt/etc/apt/sources.list <