#!/bin/sh case $PASS in ubuntu-server-minimal.ubuntu-server.installer.generic*.netboot) ;; *) exit 0 ;; esac set -eux # Extract the flavor from the pass name flavor=${PASS%%.netboot} flavor=${flavor##*.} PROJECT=$PROJECT${SUBARCH:+-$SUBARCH} KERNEL=${PWD}/livecd.${PROJECT}.kernel-$flavor INITRD=${PWD}/livecd.${PROJECT}.initrd-$flavor mkdir -p tarball/$ARCH case $ARCH in s390x) cp $INITRD tarball/$ARCH/initrd.ubuntu cp $KERNEL tarball/$ARCH/linux.ubuntu ;; *) cp $INITRD tarball/$ARCH/initrd cp $KERNEL tarball/$ARCH/linux ;; esac case $ARCH in amd64) mv chroot/usr/lib/PXELINUX/pxelinux.0 tarball/amd64/pxelinux.0 mv chroot/usr/lib/syslinux/modules/bios/ldlinux.c32 tarball/amd64/ldlinux.c32 # For shim we're now using alternatives if [ -e chroot/usr/lib/shim/shimx64.efi.signed.latest ]; then mv chroot/usr/lib/shim/shimx64.efi.signed.latest tarball/amd64/bootx64.efi else mv chroot/usr/lib/shim/shimx64.efi.signed tarball/amd64/bootx64.efi fi mv chroot/usr/lib/grub/x86_64-efi-signed/grubnetx64.efi.signed tarball/amd64/grubx64.efi mkdir tarball/amd64/grub tarball/amd64/pxelinux.cfg cat > tarball/amd64/grub/grub.cfg.in < tarball/amd64/pxelinux.cfg/default.in < tarball/arm64/grub/grub.cfg.in < tarball/s390x/ubuntu.exec < tarball/s390x/ubuntu.ins < tarball/s390x/parmfile.ubuntu.in < tarball/s390x/initrd.off perl -e "print pack('N', -s 'tarball/s390x/initrd.ubuntu')" > tarball/s390x/initrd.siz cat > tarball/s390x/kvm.cfg.in < tarball/s390x/dpm.cfg.in <