mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-02-13 06:17:08 +00:00
Version 1 of install-sources.yaml is a top-level list of the sources to be offered. Version 2 extends this by placing the list under a top-level key `sources`, adding a `version` field, and adding a `kernel` field which supplants the current kernel-meta-package file. `kernel.default` is read to know which kernel to use - unless we need to fallback to the bridge kernel.
60 lines
1.6 KiB
Bash
60 lines
1.6 KiB
Bash
#!/bin/bash
|
|
|
|
set -eux
|
|
|
|
case ${PASS:-} in
|
|
base.live)
|
|
;;
|
|
*)
|
|
exit 0
|
|
;;
|
|
esac
|
|
|
|
. config/binary
|
|
. config/functions
|
|
|
|
case ${SUBPROJECT} in
|
|
desktop)
|
|
env SNAPPY_STORE_NO_CDN=1 snap prepare-image \
|
|
config/ubuntu-core-desktop-24-amd64.model-assertion --snap firefox chroot
|
|
|
|
cat <<-EOF > config/edge.catalog-in.yaml
|
|
name: "Ubuntu Core Desktop 24"
|
|
description: >-
|
|
Ubuntu Core Desktop.
|
|
id: ubuntu-core-desktop
|
|
type: null
|
|
variant: core
|
|
locale_support: none
|
|
snapd_system_label: ubuntu-core-desktop-24-amd64
|
|
EOF
|
|
mv chroot/system-seed/systems/* chroot/system-seed/systems/ubuntu-core-desktop-24-amd64
|
|
;;
|
|
*)
|
|
env SNAPPY_STORE_NO_CDN=1 snap known --remote model series=16 brand-id=canonical model=ubuntu-core-24-amd64 > config/ubuntu-core-24-amd64.model
|
|
env SNAPPY_STORE_NO_CDN=1 snap prepare-image \
|
|
config/ubuntu-core-24-amd64.model --snap console-conf chroot
|
|
|
|
cat <<-EOF > config/edge.catalog-in.yaml
|
|
name: "Ubuntu Core 24"
|
|
description: >-
|
|
Ubuntu Core.
|
|
id: ubuntu-core
|
|
type: null
|
|
variant: core
|
|
locale_support: none
|
|
snapd_system_label: ubuntu-core-24-amd64
|
|
EOF
|
|
mv chroot/system-seed/systems/* chroot/system-seed/systems/ubuntu-core-24-amd64
|
|
;;
|
|
esac
|
|
|
|
rsync -av chroot/system-seed/{systems,snaps} chroot/var/lib/snapd/seed
|
|
rm -rf chroot/system-seed
|
|
|
|
PROJECT_FULL=$PROJECT${SUBARCH:+-$SUBARCH}
|
|
usc_opts="--output livecd.${PROJECT_FULL}.install-sources.yaml \
|
|
--template config/edge.catalog-in.yaml \
|
|
--size 0"
|
|
/usr/share/livecd-rootfs/update-source-catalog source $usc_opts
|