scripts: update for bootstrap

This commit is contained in:
Dan Bungert 2024-03-28 17:20:43 -06:00
parent 3422e3be2e
commit 12934d7b97
2 changed files with 5 additions and 2 deletions

View File

@ -15,6 +15,9 @@ if [ -d "/snap/subiquity" ] ; then
elif [ -d "/snap/ubuntu-desktop-installer" ] ; then
SNAPNAME=ubuntu-desktop-installer
INTERMEDIATE=bin/subiquity
elif [ -d "/snap/ubuntu-desktop-bootstrap" ] ; then
SNAPNAME=ubuntu-desktop-bootstrap
INTERMEDIATE=bin/subiquity
else
echo "subiquity-like snap not found"
exit 1

View File

@ -351,8 +351,8 @@ def build(ctx):
assert_exists(snap)
livefs_edit(ctx, '--add-snap-from-store', 'core20', 'stable',
'--inject-snap', snap)
elif project == 'ubuntu-desktop-installer':
with snap_manager('udi_test.snap') as snap:
elif project == 'ubuntu-desktop-bootstrap':
with snap_manager('udb_test.snap') as snap:
run('snapcraft clean --use-lxd')
run(f'snapcraft pack --use-lxd --output {snap} {snapargs}')
assert_exists(snap)