update auto/config for move of live-server to layers

bdmurray/intel-iot-models
Michael Hudson-Doyle 4 years ago
parent 7a180f8d29
commit f563b310d3

@ -764,12 +764,41 @@ case $PROJECT in
;; ;;
ubuntu-server) ubuntu-server)
add_task install minimal
case ${SUBPROJECT:-} in case ${SUBPROJECT:-} in
live) live)
add_task install standard PASSES_TO_LAYERS=true
add_task install server add_task ubuntu-server minimal standard server
add_package install cloud-init # add_task really should do this itself but for now...
snap_from_seed server config/package-lists/livecd-rootfs.snaplist.chroot_ubuntu-server.full
add_package ubuntu-server cloud-init
add_package ubuntu-server.installer linux-firmware lupin-casper openssh-server
add_snap ubuntu-server.installer subiquity/classic
if [ $ARCH = s390x ]; then
add_package ubuntu-server.installer s390-tools-zkey
fi
variants='ga'
for variant in $variants; do
if [ "$variant" = "ga" ]; then
kernel_metapkg=linux-generic
flavor=generic
elif [ "$variant" = "hwe" ]; then
kernel_metapkg=linux-generic-hwe-$(lsb_release -sr)
flavor=generic-hwe
else
echo "bogus variant: $variant"
exit 1
fi
add_package ubuntu-server.installer.$flavor $kernel_metapkg
LIVE_PASSES="${LIVE_PASSES:+$LIVE_PASSES }ubuntu-server.installer.$flavor"
done
;;
*)
echo "no thanks"
exit 1
;; ;;
esac esac
COMPONENTS='main' COMPONENTS='main'

Loading…
Cancel
Save