livecd-rootfs/live-build/ubuntu-server/hooks/02-hwe-kernel.chroot_early
2025-06-13 11:22:39 -06:00

19 lines
370 B
Bash
Executable File

#!/bin/bash -eux
# vi: ts=4 noexpandtab
case $PASS in
ubuntu-server-minimal.ubuntu-server.installer.*.*)
exit 0
;;
ubuntu-server-minimal.ubuntu-server.installer.*)
;;
*)
exit 0
;;
esac
# remove excess kernels. auto/config arranges for the correct one to be
# installed.
apt-get --yes remove --purge 'linux-image*'