scripts: update for bootstrap
This commit is contained in:
parent
3422e3be2e
commit
12934d7b97
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue