mirror of
https://github.com/canonical/ubuntu-desktop-provision.git
synced 2025-08-12 23:53:16 +00:00

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.
17 lines
421 B
Bash
Executable File
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
|