Imported 2.641

No reason for CPC update specified.
impish
CloudBuilder 5 years ago
parent e35255b2b5
commit 8768a8a602

7
debian/changelog vendored

@ -1,3 +1,10 @@
livecd-rootfs (2.641) focal; urgency=medium
* Configure a better nocloud datasource for subiquity cloud-init.
* Encode CHANNEL specification in the UC20 model names.
-- Dimitri John Ledkov <xnox@ubuntu.com> Fri, 07 Feb 2020 22:18:11 +0000
livecd-rootfs (2.640) focal; urgency=medium
* Although the request flavour to install is oem-20.04, it really is

@ -365,9 +365,20 @@ case $IMAGEFORMAT in
;;
*)
# Ubuntu Core 20
# XXX: Currently uc20 assertions do not support global
# channel overrides.
MODEL="ubuntu-core-20-${MODEL#pc-}"
# Currently uc20 assertions do not support global
# channel overrides, instead we have per-channel models
case $CHANNEL in
stable)
MODEL="ubuntu-core-20-${MODEL#pc-}"
;;
candidate|beta|edge|dangerous)
MODEL="ubuntu-core-20-${MODEL#pc-}-${CHANNEL}"
;;
*)
echo "Unknown CHANNEL ${CHANNEL} specification for ${SUITE}"
exit 1
;;
esac
;;
esac

@ -64,6 +64,14 @@ EOF
chroot $INSTALLER_ROOT apt-get -y install lupin-casper
# Install linux-firmware for kernel to upload into hardware.
chroot $INSTALLER_ROOT apt-get -y install linux-firmware
# Make sure NoCloud is last
values=$(echo get cloud-init/datasources | chroot $INSTALLER_ROOT debconf-communicate | sed 's/^0 //;s/NoCloud, //;s/None/NoCloud, None/')
printf "%s\t%s\t%s\t%s\n" \
cloud-init cloud-init/datasources multiselect "$values" |
chroot $INSTALLER_ROOT debconf-set-selections
chroot $INSTALLER_ROOT dpkg-reconfigure --frontend=noninteractive cloud-init
if [ `dpkg --print-architecture` = s390x ]; then
chroot $INSTALLER_ROOT apt-get -y install s390-tools-zkey openssh-server
rm $INSTALLER_ROOT/etc/netplan/00-installer-config.yaml

@ -23,6 +23,9 @@ chpasswd:
# This is the initial network config.
# It can be overwritten by cloud-init or subiquity.
network:
## until https://bugs.launchpad.net/cloud-init/+bug/1861460 is fixed
config: disabled
##
version: 2
ethernets:
all-en:
@ -34,6 +37,8 @@ network:
name: "eth*"
dhcp4: true
final_message: "## template: jinja\nCloud-init v. {{version}} finished at {{timestamp}}. Datasource {{datasource}}. Up {{uptime}} seconds\n\n\nWelcome to Ubuntu Server Installer!\n\nAbove you will find SSH host keys and a random password set for the `installer` user. You can use these credentials to ssh-in and complete the installation. If you provided SSH keys in the cloud-init datasource, they were also provisioned to the installer user.\n\nIf you have access to the graphical console, like TTY1 or HMC ASCII terminal you can complete the installation there too."
# Example datasource config
# datasource:
# Ec2:

Loading…
Cancel
Save