You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
livecd-rootfs/live-build/ubuntu/hooks/020-ubuntu-live.binary

27 lines
698 B

#! /bin/sh
# Kernels are deliberately installed into the live layer for Subiquity
# installers. This provides the ability to select a different kernel later, a
# key function for OEM support and a general capability for Subiquity.
set -eux
case ${PASS:-} in
minimal.standard.live)
;;
*)
exit 0
;;
esac
if [ -n "${SUBPROJECT:-}" ]; then
echo "We don't run Ubuntu Desktop hooks for this project."
fi
. config/binary
. config/functions
mv chroot/boot/initrd.img-* ${PWD}/livecd.${PROJECT}.initrd-generic
mv chroot/boot/vmlinu?-* ${PWD}/livecd.${PROJECT}.kernel-generic
chmod a+r ${PWD}/livecd.${PROJECT}.initrd-generic ${PWD}/livecd.${PROJECT}.kernel-generic