mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-06-08 08:32:19 +00:00
live-build/functions: Migrate from generic snap account-id
This commit is contained in:
parent
152adcaa04
commit
e655aff7b1
@ -423,12 +423,10 @@ snap_prepare() {
|
|||||||
> "$account_key_assertion"
|
> "$account_key_assertion"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# XXX Copied from auto/build this value is never used.
|
account=$(sed -n -e's/account-id: //p' \ < "$account_key_assertion")
|
||||||
# Is that correct in that file or was there a reason for this?
|
|
||||||
# account=$(sed -n -e's/account-id: //p' \ < "$account_key_assertion")
|
|
||||||
|
|
||||||
if ! [ -e "$account_assertion" ] ; then
|
if ! [ -e "$account_assertion" ] ; then
|
||||||
snap known --remote account account-id=generic \
|
snap known --remote account account-id=$account \
|
||||||
> "$account_assertion"
|
> "$account_assertion"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user