|
|
|
#! /bin/sh
|
|
|
|
|
|
|
|
set -eux
|
|
|
|
|
|
|
|
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
|
|
|
|
cat <<EOF > config/classic-model.model
|
|
|
|
type: model
|
|
|
|
authority-id: canonical
|
|
|
|
series: 16
|
|
|
|
brand-id: canonical
|
|
|
|
model: ubuntu-classic-2410-amd64
|
|
|
|
architecture: amd64
|
|
|
|
base: core22
|
|
|
|
classic: true
|
|
|
|
distribution: ubuntu
|
|
|
|
grade: signed
|
|
|
|
snaps:
|
|
|
|
-
|
|
|
|
default-channel: classic-24.10/stable
|
|
|
|
id: UqFziVZDHLSyO3TqSWgNBoAdHbLI4dAH
|
|
|
|
name: pc
|
|
|
|
type: gadget
|
|
|
|
-
|
|
|
|
default-channel: 24.10/stable
|
|
|
|
id: pYVQrBcKmBa0mZ4CCN7ExT6jH8rY1hza
|
|
|
|
name: pc-kernel
|
|
|
|
type: kernel
|
|
|
|
-
|
|
|
|
default-channel: latest/stable
|
|
|
|
id: amcUKQILKXHHTlmSa7NMdnXSx02dNeeT
|
|
|
|
name: core22
|
|
|
|
type: base
|
|
|
|
-
|
|
|
|
default-channel: latest/stable
|
|
|
|
id: PMrrV4ml8uWuEUDBT8dSGnKUYbevVhc4
|
|
|
|
name: snapd
|
|
|
|
type: snapd
|
|
|
|
-
|
|
|
|
default-channel: latest/stable
|
|
|
|
id: EISPgh06mRh1vordZY9OZ34QHdd7OrdR
|
|
|
|
name: bare
|
|
|
|
type: base
|
|
|
|
-
|
|
|
|
default-channel: latest/stable/ubuntu-24.10
|
|
|
|
id: 3wdHCAVyZEmYsCMFDE9qt92UV8rC8Wdk
|
|
|
|
name: firefox
|
|
|
|
type: app
|
|
|
|
-
|
|
|
|
default-channel: latest/stable/ubuntu-24.10
|
|
|
|
id: lATO8HzwVvrAPrlZRAWpfyrJKlAJrZS3
|
|
|
|
name: gnome-42-2204
|
|
|
|
type: app
|
|
|
|
-
|
|
|
|
default-channel: latest/stable/ubuntu-24.10
|
|
|
|
id: jZLfBRzf1cYlYysIjD2bwSzNtngY0qit
|
|
|
|
name: gtk-common-themes
|
|
|
|
type: app
|
|
|
|
-
|
|
|
|
default-channel: latest/stable/ubuntu-24.10
|
|
|
|
id: IrwRHakqtzhFRHJOOPxKVPU0Kk7Erhcu
|
|
|
|
name: snapd-desktop-integration
|
|
|
|
type: app
|
|
|
|
-
|
|
|
|
default-channel: 1/stable/ubuntu-24.10
|
|
|
|
id: EI0D1KHjP8XiwMZKqSjuh6W8zvcowUVP
|
|
|
|
name: firmware-updater
|
|
|
|
type: app
|
|
|
|
-
|
|
|
|
default-channel: 1/stable/ubuntu-24.10
|
|
|
|
id: FppXWunWzuRT2NUT9CwoBPNJNZBYOCk0
|
|
|
|
name: desktop-security-center
|
|
|
|
type: app
|
|
|
|
-
|
|
|
|
default-channel: 1/stable/ubuntu-24.10
|
|
|
|
id: aoc5lfC8aUd2VL8VpvynUJJhGXp5K6Dj
|
|
|
|
name: prompting-client
|
|
|
|
type: app
|
|
|
|
-
|
|
|
|
default-channel: 2/stable/ubuntu-24.10
|
|
|
|
id: gjf3IPXoRiipCu9K0kVu52f0H56fIksg
|
|
|
|
name: snap-store
|
|
|
|
type: app
|
|
|
|
timestamp: 2024-06-18T12:00:00.0Z
|
|
|
|
sign-key-sha3-384: 9tydnLa6MTJ-jaQTFUXEwHl1yRx7ZS4K5cyFDhYDcPzhS7uyEkDxdUjg9g08BtNn
|
|
|
|
|
|
|
|
AcLBXAQAAQoABgUCZv8eAQAKCRDgT5vottzAEu4rD/9UbdQMAYBD9kJnKZpgDQLK6WCV4DU4vBF0
|
|
|
|
exKeVREhjGlcGNTKZDBTu/thVu9xCbGdKFxucoBr3y5kGmRkFaHXqzCGUcGOIRnGqlLHAwskcsHY
|
|
|
|
LJYvPcUl6+UJhLHEN+kz50iPuEOe2qdmwAYyOTpkhWatFI8gjOyUN79aiMIPvbuKxmz6reozxi92
|
|
|
|
bPhr0emR20Moc23x8ANNc04FY062eJI1gXBWfakk8whQvUk+++sJZDUXcd6yfR7HtIhZaBlgLSOG
|
|
|
|
wIO74vlTaGNqbnOik2LhI/75Rpmelb3H2qukcBl6x847Pt588hERQHvy7LwrLTiqDFoWC2QaRa5U
|
|
|
|
VCoV0QOjmoPbc3SESLyQbjbC01I1rYgPnsVOZ6jiI8lx6ODH5But3ziA4Z2ikosQoc4EwpkJa/yk
|
|
|
|
1ca6/MgHxSD4A4TDn031zs4hPQxF33xPB3/4AJHmNwae+9yeoLF9Fen/NaE6GsNA9JsXvTt4qplu
|
|
|
|
U6oiKIBuRj6MyyIf1RALSF1jZUQblif5exbkp+q0mdbaTvLCOEBuVzildhtpmS3ZbNYgwp7VPSjM
|
|
|
|
KNwBBQiu4Ewdlhn0801ruI+eGwR5KVhIrSFdcjsU39jLG7SkWM5NO74t1x75gvUXsmti3WswbIPO
|
|
|
|
JlxI5Z1CQv+Uqbg5qZkt/v4EuptvA1CzEcoBzTa05w==
|
|
|
|
EOF
|
|
|
|
|
|
|
|
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 config/classic-model.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
|