Files
ubuntu-desktop-provision/scripts/inject-snap
Tim Holmes-Mitra 84b95dec0e ci: Merge subiquity integration check with rebase-ci
Triggering one action from another requires a personal access token. So,
to avoid over-complicating our actions this commit merge's the subiquity
integration check into the rebase-ci-bootstrap workflow.

Breaking the check into its own job complicates the setup as well. I
suspect this is due to the force push in the rebase job.
2024-02-19 15:31:41 +00:00

17 lines
421 B
Bash
Executable File

#!/bin/bash
# inject-snap - install a snap into a live iso
# inject-snap source_iso destination_iso file.snap
set -eux
src=$1
dst=$2
snap=$3
LIVEFS_EDITOR="${LIVEFS_EDITOR-$(readlink -f "$(dirname $(dirname ${0}))/livefs-editor")}"
[ -d "$LIVEFS_EDITOR" ] || git clone https://github.com/mwhudson/livefs-editor $LIVEFS_EDITOR
sudo PYTHONPATH=$LIVEFS_EDITOR \
python3 -m livefs_edit $src $dst --inject-snap $snap