#! /bin/sh set -eux case ${PASS:-} in minimal.standard.enhanced-secureboot) ;; *) exit 0 ;; esac case ${SUBPROJECT:-} in canary) ;; *) echo "We don't run canary hooks for this project." exit 0 ;; esac . config/binary # env SNAPPY_STORE_NO_CDN=1 snap known --remote model series=16 brand-id=canonical model=ubuntu-classic-2310-amd64 > config/classic-model.model cat < config/classic-model.model type: model authority-id: canonical series: 16 brand-id: canonical model: ubuntu-classic-2310-amd64 architecture: amd64 base: core22 classic: true distribution: ubuntu grade: signed snaps: - default-channel: classic-23.10/stable id: UqFziVZDHLSyO3TqSWgNBoAdHbLI4dAH name: pc type: gadget - default-channel: 24-hwe/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: DLqre5XGLbDqg9jPtiAhRRjDuPVa5X1q name: core20 type: base - default-channel: latest/stable id: EISPgh06mRh1vordZY9OZ34QHdd7OrdR name: bare type: base - default-channel: latest/stable id: 3wdHCAVyZEmYsCMFDE9qt92UV8rC8Wdk name: firefox type: app - default-channel: latest/stable id: rw36mkAjdIKl13dzfwyxP87cejpyIcct name: gnome-3-38-2004 type: app - default-channel: latest/stable id: lATO8HzwVvrAPrlZRAWpfyrJKlAJrZS3 name: gnome-42-2204 type: app - default-channel: latest/stable id: jZLfBRzf1cYlYysIjD2bwSzNtngY0qit name: gtk-common-themes type: app - default-channel: latest/stable id: gjf3IPXoRiipCu9K0kVu52f0H56fIksg name: snap-store type: app - default-channel: latest/stable id: IrwRHakqtzhFRHJOOPxKVPU0Kk7Erhcu name: snapd-desktop-integration type: app timestamp: 2023-07-18T12:00:00.0Z sign-key-sha3-384: 9tydnLa6MTJ-jaQTFUXEwHl1yRx7ZS4K5cyFDhYDcPzhS7uyEkDxdUjg9g08BtNn AcLBXAQAAQoABgUCZLa6ewAKCRDgT5vottzAEu9jD/9dfuMX8kDWrEaaiv+3g6GB/xEuhHkVStOU 5c+7M9wB19BQrIhKCbYnNNGLJrIJj1DDThwCK+/L43NiiuolEDaTAGbKPxw7BhCMitnX9i3fxkFm WaAsc667Fi9QVTb7XFKrzUiU7cwmqCI0ZjAn1fx8zXutRPISKw8fQaL8Acv80lNSWL5dyyJ1gtvC jMGVbD8R45pF+n8u5sNQaRweYayNv+TFAJDquGxP3Cuu0DYiO3SzsBpg8BV9siqByOshO+93DCaM 8Vl3RFPGdY+M+kJsoI3GBHlZ3K+Hl1biVPpfm74T5DXQiLAxzs7iPgfqGC0QwRdzxHsNCETZrVAn PzRDiagJSQWgAB1/zUVDgHIOw52OmHrTavwK7/p983na/HhVfU0rV3vZ/Ve6XsTryoOZ6Z31ygc4 NiAtm8z7rRSsehR3JdykrtJziaE26lph9gl3QgdSYnfOGB+IOUt/Y6jf9hcAEIXqCMVKoiL2ynlp G+nrcV25FfId+FDjezbfvPGe71fsjVZyL4ReQPCZRyCBujcASsn7sitZTuiZzYX8L9Uwl4baO6/a dRTqQ4onOgta0LnuGFoIg4ifs7OLcyZmuQUoVR8a8IwNvq9/acYZ/uoYBUwWpzkqF2i1Wc8t+zvx uqvrEaWLoj9oa4E+956QJLGfn+qwSNeURdfkjAoPnA== EOF channel="" if [ -n "${CHANNEL:-}" ]; then channel="--channel $CHANNEL" fi 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 rsync -a chroot/system-seed/ chroot/var/lib/snapd/seed rm -rf chroot/system-seed/