livecd-rootfs/live-build/ubuntu-server/hooks/01-unminimize.chroot_early
Utkarsh Gupta c8ee3dddba Use packaged unminimize in the ubuntu-server images
unminimize is currently present at /usr/local/sbin/unminimize,
which is spit out by livecd-rootfs currently. We'd like to switch
that to use the packaged unminimize, which will be at
/usr/bin/unminimize instead.

(cherry picked from commit 7535bf7bc729b52d28a0a5a44b3aa8362ca9397d)
2024-08-21 12:06:39 +05:30

23 lines
667 B
Bash
Executable File

#!/bin/bash
set -ex
case ${PASS} in
ubuntu-server-minimal.ubuntu-server)
;;
*)
exit 0
;;
esac
# Run the unminimize script to re-install packages with all dpkg filters removed and install packages
# removed as part of minimization
yes | /usr/bin/unminimize
# Fix up missing recommends. Other non-layered flavors handle this in
# live-build/auto/build, but we need to do it here. Also, there are
# additional recommends missing from server-minimal that wouldn't be
# corrected by a fix to debootstrap to handle Recommends.
echo "Installing any missing recommends"
env DEBIAN_FRONTEND=noninteractive apt-get -y --fix-policy install