I want to build a custom Ubuntu Core image (core 22) incorporating a local gadget snap. I did this previously for core 22, with some assistance:
For the core22 based image this is my model assertion:
{
"type": "model",
"authority-id": "HNWdnNMKNv0zCKCsnvz7ijg8GXapu498",
"brand-id": "HNWdnNMKNv0zCKCsnvz7ijg8GXapu498",
"series": "16",
"model": "epi-gateway-os-core-22-arm64",
"display-name":"EpiSensor Gateway OS (Core22, arm64)",
"architecture": "arm64",
"base": "core22",
"grade": "dangerous",
"timestamp": "2022-11-15T10:15:00+00:00",
"snaps": [
{
"name": "core22",
"type": "base",
"default-channel": "latest/stable",
"id": "DLqre5XGLbDqg9jPtiAhRRjDuPVa5X1q"
},
{
"name": "epi-pi",
"type": "gadget"
},
{
"name": "pi-kernel",
"type": "kernel",
"default-channel": "22/stable",
"id": "jeIuP6tfFrvAdic8DMWqHmoaoukAPNbJ"
},
{
"name": "snapd",
"type": "snapd",
"default-channel": "latest/stable",
"id": "PMrrV4ml8uWuEUDBT8dSGnKUYbevVhc4"
},
{
"name": "network-manager",
"type": "app",
"default-channel": "22/stable",
"id": "RmBXKl6HO6YOC2DE4G2q1JzWImC04EUy"
},
{
"name": "modem-manager",
"type": "app",
"default-channel": "22/stable",
"id": "KtwxgRlwCAVKFw92BUdt1WloH1Va3QPo"
}
]
}
However on running ubuntu-image I get the following error:
Error: Error preparing image: cannot run unsquashfs:
Read on filesystem failed because EOF
read_id_table: failed to read id index table
File system corruption detected
FATAL ERROR:failed to read file system tables
Any suggestions as to what I might be doing wrong?