dear all,
I have a similar issue:
specifying the following in the .json file
{
"type": "model",
"series": "16",
"model": "pro2-iot",
"architecture": "armhf",
"authority-id": "mycompany",
"brand-id": "mycompany",
"store": ".......",
"timestamp": "2022-04-04T10:40:41+00:00",
"base": "core22",
"grade": "dangerous",
"snaps": [
{
"name": "pi",
"type": "gadget",
"default-channel": "22/stable",
"id": "YbGa9O3dAXl88YLI6Y1bGG74pwBxZyKg"
},
I do not have the command
UBUNTU_STORE_ARCH=armhf UBUNTU_STORE_ID=.......... UBUNTU_STORE_AUTH_DATA_FILENAME=./store.auth ubuntu-image snap -c stable -O ./build --cloud-init ./conf/pro2-iot/cloud-init-pro2-iot.conf ./conf/pro2-iot/pro2-iot.model
download the pi snap; the output is like the following
WARNING: proceeding to download snaps ignoring validations, this default will change in the future. For now use --validation=enforce for validations to be taken into account, pass instead --validation=ignore to preserve current behavior going forward
error: cannot download snap "pi": snap not found
but if I use the manual command
UBUNTU_STORE_ARCH=armhf snap download pi --channel=22/stable
I get it downloaded:
Fetching snap "pi"
Fetching assertions for "pi"
Install the snap with:
snap ack pi_133.assert
snap install pi_133.snap
a workaround could be that of copying the manually downloaded snap to the custom_snaps directory and instruct ubuntu-image to use it but I wonder why it is not automatically downloaded through the info in the .json file
any idea?