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
|
elif [ -d "/snap/ubuntu-desktop-installer" ] ; then
|
||||||
SNAPNAME=ubuntu-desktop-installer
|
SNAPNAME=ubuntu-desktop-installer
|
||||||
INTERMEDIATE=bin/subiquity
|
INTERMEDIATE=bin/subiquity
|
||||||
|
elif [ -d "/snap/ubuntu-desktop-bootstrap" ] ; then
|
||||||
|
SNAPNAME=ubuntu-desktop-bootstrap
|
||||||
|
INTERMEDIATE=bin/subiquity
|
||||||
else
|
else
|
||||||
echo "subiquity-like snap not found"
|
echo "subiquity-like snap not found"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
|
@ -351,8 +351,8 @@ def build(ctx):
|
||||||
assert_exists(snap)
|
assert_exists(snap)
|
||||||
livefs_edit(ctx, '--add-snap-from-store', 'core20', 'stable',
|
livefs_edit(ctx, '--add-snap-from-store', 'core20', 'stable',
|
||||||
'--inject-snap', snap)
|
'--inject-snap', snap)
|
||||||
elif project == 'ubuntu-desktop-installer':
|
elif project == 'ubuntu-desktop-bootstrap':
|
||||||
with snap_manager('udi_test.snap') as snap:
|
with snap_manager('udb_test.snap') as snap:
|
||||||
run('snapcraft clean --use-lxd')
|
run('snapcraft clean --use-lxd')
|
||||||
run(f'snapcraft pack --use-lxd --output {snap} {snapargs}')
|
run(f'snapcraft pack --use-lxd --output {snap} {snapargs}')
|
||||||
assert_exists(snap)
|
assert_exists(snap)
|
||||||
|
|
Loading…
Reference in New Issue