mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-10-19 11:04:05 +00:00
46 lines
1.3 KiB
Bash
Executable File
46 lines
1.3 KiB
Bash
Executable File
#! /bin/sh
|
|
|
|
set -eux
|
|
|
|
# don't build the TPMFDE bits right now
|
|
# we need a matching kernel and snapd to avoid this error:
|
|
# error: snapd 2.68+ is not compatible with a kernel containing snapd prior to 2.68
|
|
echo "SKIPPING 020-ubuntu-enhanced-sb.binary"
|
|
exit 0
|
|
|
|
case ${PASS:-} in
|
|
minimal.standard.enhanced-secureboot)
|
|
;;
|
|
minimal.enhanced-secureboot)
|
|
;;
|
|
*)
|
|
exit 0
|
|
;;
|
|
esac
|
|
|
|
if [ -n "${SUBPROJECT:-}" ]; then
|
|
echo "We don't run Ubuntu Desktop hooks for this project."
|
|
exit 0
|
|
fi
|
|
|
|
. config/binary
|
|
. config/functions
|
|
|
|
# env SNAPPY_STORE_NO_CDN=1 snap known --remote model series=16 brand-id=canonical model=ubuntu-classic-2410-amd64 > config/classic-model.model
|
|
model=/usr/share/livecd-rootfs/live-build/${PROJECT}/ubuntu-classic-amd64.model
|
|
|
|
channel=""
|
|
if [ -n "${CHANNEL:-}" ]; then
|
|
channel="--channel $CHANNEL"
|
|
fi
|
|
|
|
reset_snapd_state chroot
|
|
|
|
# Set UBUNTU_STORE_COHORT_KEY="+" to force prepare-image to fetch the latest
|
|
# snap versions regardless of phasing status
|
|
env SNAPPY_STORE_NO_CDN=1 UBUNTU_STORE_COHORT_KEY="+" snap prepare-image \
|
|
--classic $model $channel chroot
|
|
mv chroot/system-seed/systems/* chroot/system-seed/systems/enhanced-secureboot-desktop
|
|
rm -rf chroot/var/lib/snapd/seed
|
|
mv chroot/system-seed chroot/var/lib/snapd/seed
|