Now on a device that went through a remodeling (or multiple) to new brand/model there will be multiple model
and serial
assertions in its system assertion database. This means that snap known model|serial
alone cannot answer what is the current model/serial of the device.
We will introduce dedicated commands to find the current model/serial of a device:
snap model [--serial] [--verbose|--assertion]
The basic commands will display what are the primary keys of the underlying assertions in the usual YAML-like format. With --verbose
all information (except assertion details) will be printed. With --assertion
the commands will output the underlying assertion verbatim.
The snapd API behind these will work similarly to /v2/assertions/{assertType}][?json=]
but returning only the current assertion and living at /v2/model
and /v2/model/serial
respectively.