|
|
@ -60,10 +60,11 @@ EOF
|
|
|
|
|
|
|
|
|
|
|
|
# Prepare installer layer.
|
|
|
|
# Prepare installer layer.
|
|
|
|
|
|
|
|
|
|
|
|
# Install casper for live session magic.
|
|
|
|
# Install:
|
|
|
|
chroot $INSTALLER_ROOT apt-get -y install lupin-casper
|
|
|
|
# 1. linux-firmware for kernel to upload into hardware.
|
|
|
|
# Install linux-firmware for kernel to upload into hardware.
|
|
|
|
# 2. casper for live session magic.
|
|
|
|
chroot $INSTALLER_ROOT apt-get -y install linux-firmware
|
|
|
|
# 3. openssh-server to enable the "ssh into live session" feature
|
|
|
|
|
|
|
|
chroot $INSTALLER_ROOT apt-get -y install linux-firmware lupin-casper openssh-server
|
|
|
|
|
|
|
|
|
|
|
|
# Make sure NoCloud is last
|
|
|
|
# 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/')
|
|
|
|
values=$(echo get cloud-init/datasources | chroot $INSTALLER_ROOT debconf-communicate | sed 's/^0 //;s/NoCloud, //;s/None/NoCloud, None/')
|
|
|
@ -73,11 +74,7 @@ printf "%s\t%s\t%s\t%s\n" \
|
|
|
|
chroot $INSTALLER_ROOT dpkg-reconfigure --frontend=noninteractive cloud-init
|
|
|
|
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
|
|
|
|
rm $INSTALLER_ROOT/etc/netplan/00-installer-config.yaml
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
# Don't let cloud-init run in the live session.
|
|
|
|
|
|
|
|
touch $INSTALLER_ROOT/etc/cloud/cloud-init.disabled
|
|
|
|
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
chroot $INSTALLER_ROOT apt-get clean
|
|
|
|
chroot $INSTALLER_ROOT apt-get clean
|
|
|
|
|
|
|
|
|
|
|
|