#! /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 < 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: latest/stable/ubuntu-24.10 id: ew7OxpbRTxfK7ImpIygRR85lkxvU7Pzt name: gnome-46-2404 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 - default-channel: latest/stable/ubuntu-24.10 id: HyhSEBPv3vHsW6uOHkQR384NgI7S6zpj name: mesa-2404 type: app - default-channel: latest/stable id: dwTAh7MZZ01zyriOZErqd1JynQLiOGvM name: core24 type: base timestamp: 2024-06-18T12:00:00.0Z sign-key-sha3-384: 9tydnLa6MTJ-jaQTFUXEwHl1yRx7ZS4K5cyFDhYDcPzhS7uyEkDxdUjg9g08BtNn AcLBXAQAAQoABgUCZvw6GQAKCRDgT5vottzAEm5tEACaymSGrvucwR1I5RAgExErk1OtS5BfpMgS VQtpdW8gXGEacKF0MWXLrwlMw2XOz7j6h8KsCoYeaAsaXWy4m7LOyZ83Qe88JIjau+gBLkLJ4+si ZriIfpSix6weg7f4QIhcatUr+g6Lc8k8kxShuiGw7As42P+fgmFYuvNoDZi3kSDIWSHpNAfXc7xL ps++lkjFV+unBXqTN1KHFCCJDoKdKVPMpXtHr0YtbvViLteDhAQS1ltvgtGdRGHEY1EVopMEGf8w xl6XxcSD/sP5cMUWURAZLzyFgoGLPPpXmjWXVjquyDRz14gkT7uMbeEHLD/XKPsoZmjtVqjjIsFc nHbCeaW4RAx5VRTx6RPFMPeyP3NOAU4dh0m9yPuR9go23bANtx4bXn78qt59mS/sDCuzQKsNUMuM dHQQaPBHvCC/HWoF0/Hk+Q39L93Tb4l+sSYKWpKacWlZX8pzzZcjcLM05bt33t7V0TGur976egDM ErHGItwkDKKSAhr8vxcRobTKXy+0kStpH+kr2IQWqx0TdQ9uKIsZWf5hE8zxSuXA6eBykvvQkl+W 7DJyXG5r3I9ATaCIfLXCBk8Wws7oWgLo3IPAUV2t/iDCFzxQe9vilIqxTncASJr+JgR+lijVirrb 2ll84X7DWmMRCxICESPl3MITbcibY6oxj2Li7QYwFA== 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