Bump Ubuntu image to 20.04 LTS
This commit is contained in:
parent
ad3acd5ebe
commit
c96ec75193
2 changed files with 6 additions and 1 deletions
|
@ -24,6 +24,8 @@ echo "unconfigured-host" > "$chroot_dir/etc/hostname"
|
||||||
|
|
||||||
# Add non-free repository for firmware-bnx2 network card firmware.
|
# Add non-free repository for firmware-bnx2 network card firmware.
|
||||||
echo "deb http://deb.debian.org/debian/ $release main contrib non-free" > "$chroot_dir/etc/apt/sources.list"
|
echo "deb http://deb.debian.org/debian/ $release main contrib non-free" > "$chroot_dir/etc/apt/sources.list"
|
||||||
|
echo "deb http://deb.debian.org/debian/ $release-updates main contrib non-free" >> "$chroot_dir/etc/apt/sources.list"
|
||||||
|
|
||||||
chroot "$chroot_dir" apt-get update
|
chroot "$chroot_dir" apt-get update
|
||||||
chroot "$chroot_dir" apt-get install -y firmware-bnx2
|
chroot "$chroot_dir" apt-get install -y firmware-bnx2
|
||||||
|
|
||||||
|
@ -63,16 +65,19 @@ auto eth0
|
||||||
allow-hotplug eth0
|
allow-hotplug eth0
|
||||||
iface eth0 inet dhcp
|
iface eth0 inet dhcp
|
||||||
iface eth0 inet6 auto
|
iface eth0 inet6 auto
|
||||||
|
post-up /sbin/ip link set \$IFACE mtu 9000
|
||||||
|
|
||||||
# OpenNebula VM vlan
|
# OpenNebula VM vlan
|
||||||
auto eth0.10
|
auto eth0.10
|
||||||
iface eth0.10 inet6 auto
|
iface eth0.10 inet6 auto
|
||||||
vlan-raw-device eth0
|
vlan-raw-device eth0
|
||||||
|
post-up /sbin/ip link set \$IFACE mtu 9000
|
||||||
|
|
||||||
# OpenNebula VM bridge
|
# OpenNebula VM bridge
|
||||||
auto br-vms
|
auto br-vms
|
||||||
iface br-vms inet6 auto
|
iface br-vms inet6 auto
|
||||||
bridge_ports eth0.10
|
bridge_ports eth0.10
|
||||||
|
post-up /sbin/ip link set \$IFACE mtu 9000
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# Build initramfs from generated installation.
|
# Build initramfs from generated installation.
|
||||||
|
|
|
@ -9,7 +9,7 @@ set -e
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
# XXX: Handle command-line arguments?
|
# XXX: Handle command-line arguments?
|
||||||
RELEASE=eoan # 19.10
|
RELEASE=focal # 20.04
|
||||||
ARCH=amd64
|
ARCH=amd64
|
||||||
IMAGE_PATH=ubuntu-$RELEASE-$(date --iso-8601).img.qcow2
|
IMAGE_PATH=ubuntu-$RELEASE-$(date --iso-8601).img.qcow2
|
||||||
IMAGE_SIZE=10G
|
IMAGE_SIZE=10G
|
||||||
|
|
Loading…
Reference in a new issue