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.
119 lines
3.2 KiB
119 lines
3.2 KiB
#! /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-2404-amd64 > config/classic-model.model
|
|
cat <<EOF > config/classic-model.model
|
|
type: model
|
|
authority-id: canonical
|
|
revision: 3
|
|
series: 16
|
|
brand-id: canonical
|
|
model: ubuntu-classic-2404-amd64
|
|
architecture: amd64
|
|
base: core22
|
|
classic: true
|
|
distribution: ubuntu
|
|
grade: signed
|
|
snaps:
|
|
-
|
|
default-channel: classic-24.04/stable
|
|
id: UqFziVZDHLSyO3TqSWgNBoAdHbLI4dAH
|
|
name: pc
|
|
type: gadget
|
|
-
|
|
default-channel: 24/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.04
|
|
id: 3wdHCAVyZEmYsCMFDE9qt92UV8rC8Wdk
|
|
name: firefox
|
|
type: app
|
|
-
|
|
default-channel: latest/stable/ubuntu-24.04
|
|
id: lATO8HzwVvrAPrlZRAWpfyrJKlAJrZS3
|
|
name: gnome-42-2204
|
|
type: app
|
|
-
|
|
default-channel: latest/stable/ubuntu-24.04
|
|
id: jZLfBRzf1cYlYysIjD2bwSzNtngY0qit
|
|
name: gtk-common-themes
|
|
type: app
|
|
-
|
|
default-channel: 2/stable/ubuntu-24.04
|
|
id: gjf3IPXoRiipCu9K0kVu52f0H56fIksg
|
|
name: snap-store
|
|
type: app
|
|
-
|
|
default-channel: latest/stable/ubuntu-24.04
|
|
id: IrwRHakqtzhFRHJOOPxKVPU0Kk7Erhcu
|
|
name: snapd-desktop-integration
|
|
type: app
|
|
-
|
|
default-channel: 1/stable/ubuntu-24.04
|
|
id: EI0D1KHjP8XiwMZKqSjuh6W8zvcowUVP
|
|
name: firmware-updater
|
|
type: app
|
|
timestamp: 2024-08-26T12:00:00.0Z
|
|
sign-key-sha3-384: 9tydnLa6MTJ-jaQTFUXEwHl1yRx7ZS4K5cyFDhYDcPzhS7uyEkDxdUjg9g08BtNn
|
|
|
|
AcLBXAQAAQoABgUCZsyysAAKCRDgT5vottzAEilHEACwNTjGEIAfePAkgYeaWvNvQXTIHRqa/fc8
|
|
G7BJZQJjvE8I7DMQn5QHqUHpLTvyKQCch780R43NbNmcEWBSvYe7vdfSGwF4acyP6MBk7rO1s366
|
|
lBjvKEkhk1yfcpx3cGUy+LWsLvJkRYvAC31vMCcVnyXZGzAFT0qDlHOH5J3UHc7JBmuo9rdHueKN
|
|
KmjgozFp6NAPFFGEA4yqIqBRUtZyu9r27SvI2AqY+TKZClzUvaxxUOpCMTZmF8nMC9ucLRstSHbf
|
|
BGUvaIo97xY0ycG8QHFXEG1iOsIhUq2pGgIIajCxL+A1uwvGuGRDHscb0g63MvfqJB3lIsKy/oTU
|
|
8KgAIOG2Qy9AhwkP1kMuBh5Txw4XMp4lNmPpBToOIQK+LAmDup82+czcvTdDRVAmzq3gGMeSwzc8
|
|
hwq6uMLbI+jl67tHhhItOAMF5UzqWetecA81OEvyLxNSYcLIJ2zbXwRaOTummnIFgg6RDPBwd0tl
|
|
K8EVLVIakCQtKs/2tmBMWXuv2HStqoUsn+8I5ofzVv/gJnu0cD1xvLTJ0xbK4TnTmCYDP8b357Jg
|
|
MXOLyKFuNLcaf1mR7vwsE3570jsFUQtwq8CYWZD5WCCVv1QXb2MKD3A1fEgAHMqRfHSa+HoPzsWY
|
|
+KDM/aLgtd0I8R7pQdz1GO2vkxz5BAv7jG5kvwhuYg==
|
|
EOF
|
|
|
|
channel=""
|
|
if [ -n "${CHANNEL:-}" ]; then
|
|
channel="--channel $CHANNEL"
|
|
fi
|
|
|
|
reset_snapd_state chroot
|
|
|
|
env SNAPPY_STORE_NO_CDN=1 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
|