mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-05-08 01:11:31 +00:00
Configure a better nocloud datasource for subiquity cloud-init.
This commit is contained in:
parent
fbf9c5b854
commit
3b1047fbc2
6
debian/changelog
vendored
6
debian/changelog
vendored
@ -1,3 +1,9 @@
|
|||||||
|
livecd-rootfs (2.641) UNRELEASED; urgency=medium
|
||||||
|
|
||||||
|
* Configure a better nocloud datasource for subiquity cloud-init.
|
||||||
|
|
||||||
|
-- Dimitri John Ledkov <xnox@ubuntu.com> Fri, 07 Feb 2020 22:11:26 +0000
|
||||||
|
|
||||||
livecd-rootfs (2.640) focal; urgency=medium
|
livecd-rootfs (2.640) focal; urgency=medium
|
||||||
|
|
||||||
* Although the request flavour to install is oem-20.04, it really is
|
* Although the request flavour to install is oem-20.04, it really is
|
||||||
|
@ -64,6 +64,14 @@ EOF
|
|||||||
chroot $INSTALLER_ROOT apt-get -y install lupin-casper
|
chroot $INSTALLER_ROOT apt-get -y install lupin-casper
|
||||||
# Install linux-firmware for kernel to upload into hardware.
|
# Install linux-firmware for kernel to upload into hardware.
|
||||||
chroot $INSTALLER_ROOT apt-get -y install linux-firmware
|
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
|
if [ `dpkg --print-architecture` = s390x ]; then
|
||||||
chroot $INSTALLER_ROOT apt-get -y install s390-tools-zkey openssh-server
|
chroot $INSTALLER_ROOT apt-get -y install s390-tools-zkey openssh-server
|
||||||
rm $INSTALLER_ROOT/etc/netplan/00-installer-config.yaml
|
rm $INSTALLER_ROOT/etc/netplan/00-installer-config.yaml
|
||||||
|
@ -23,6 +23,9 @@ chpasswd:
|
|||||||
# This is the initial network config.
|
# This is the initial network config.
|
||||||
# It can be overwritten by cloud-init or subiquity.
|
# It can be overwritten by cloud-init or subiquity.
|
||||||
network:
|
network:
|
||||||
|
## until https://bugs.launchpad.net/cloud-init/+bug/1861460 is fixed
|
||||||
|
config: disabled
|
||||||
|
##
|
||||||
version: 2
|
version: 2
|
||||||
ethernets:
|
ethernets:
|
||||||
all-en:
|
all-en:
|
||||||
@ -34,6 +37,8 @@ network:
|
|||||||
name: "eth*"
|
name: "eth*"
|
||||||
dhcp4: true
|
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
|
# Example datasource config
|
||||||
# datasource:
|
# datasource:
|
||||||
# Ec2:
|
# Ec2:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user