examples: improve enhanced-secureboot

This commit is contained in:
Dan Bungert 2023-05-10 09:14:32 -06:00
parent 925d3e0a40
commit c9180f09c1
1 changed files with 75 additions and 85 deletions

View File

@ -3,55 +3,100 @@
"status-code": 200, "status-code": 200,
"status": "OK", "status": "OK",
"result": { "result": {
"label": "prefer-encrypted", "label": "enhanced-secureboot-desktop",
"model": { "model": {
"architecture": "amd64", "architecture": "amd64",
"authority-id": "9XoOBkC2zdzx5CVZdl0ZVYuLpCo15ww0", "authority-id": "canonical",
"base": "core22", "base": "core22",
"brand-id": "9XoOBkC2zdzx5CVZdl0ZVYuLpCo15ww0", "brand-id": "canonical",
"classic": "true", "classic": "true",
"distribution": "ubuntu", "distribution": "ubuntu",
"grade": "dangerous", "grade": "signed",
"model": "mwhudson-22-classic-dangerous", "model": "ubuntu-classic-2304-amd64",
"serial-authority": [
"generic"
],
"series": "16", "series": "16",
"sign-key-sha3-384": "AWEzKBCuROAYkR0dQfdgI95Ih9sWqwxpU1yezWkKT3EUX6LgNNgXFWSNUxC1S2_v", "sign-key-sha3-384": "9tydnLa6MTJ-jaQTFUXEwHl1yRx7ZS4K5cyFDhYDcPzhS7uyEkDxdUjg9g08BtNn",
"snaps": [ "snaps": [
{ {
"default-channel": "22/edge", "default-channel": "classic-23.04/stable",
"id": "UqFziVZDHLSyO3TqSWgNBoAdHbLI4dAH", "id": "UqFziVZDHLSyO3TqSWgNBoAdHbLI4dAH",
"name": "pc", "name": "pc",
"type": "gadget" "type": "gadget"
}, },
{ {
"default-channel": "22/edge", "default-channel": "24-hwe/stable",
"id": "pYVQrBcKmBa0mZ4CCN7ExT6jH8rY1hza", "id": "pYVQrBcKmBa0mZ4CCN7ExT6jH8rY1hza",
"name": "pc-kernel", "name": "pc-kernel",
"type": "kernel" "type": "kernel"
}, },
{ {
"default-channel": "latest/edge", "default-channel": "latest/stable",
"id": "amcUKQILKXHHTlmSa7NMdnXSx02dNeeT", "id": "amcUKQILKXHHTlmSa7NMdnXSx02dNeeT",
"name": "core22", "name": "core22",
"type": "base" "type": "base"
}, },
{ {
"default-channel": "latest/edge", "default-channel": "latest/stable",
"id": "PMrrV4ml8uWuEUDBT8dSGnKUYbevVhc4", "id": "PMrrV4ml8uWuEUDBT8dSGnKUYbevVhc4",
"name": "snapd", "name": "snapd",
"type": "snapd" "type": "snapd"
},
{
"default-channel": "latest/stable",
"id": "DLqre5XGLbDqg9jPtiAhRRjDuPVa5X1q",
"name": "core20",
"type": "base"
},
{
"default-channel": "latest/stable",
"id": "EISPgh06mRh1vordZY9OZ34QHdd7OrdR",
"name": "bare",
"type": "base"
},
{
"default-channel": "latest/stable",
"id": "3wdHCAVyZEmYsCMFDE9qt92UV8rC8Wdk",
"name": "firefox",
"type": "app"
},
{
"default-channel": "latest/stable",
"id": "rw36mkAjdIKl13dzfwyxP87cejpyIcct",
"name": "gnome-3-38-2004",
"type": "app"
},
{
"default-channel": "latest/stable",
"id": "lATO8HzwVvrAPrlZRAWpfyrJKlAJrZS3",
"name": "gnome-42-2204",
"type": "app"
},
{
"default-channel": "latest/stable",
"id": "jZLfBRzf1cYlYysIjD2bwSzNtngY0qit",
"name": "gtk-common-themes",
"type": "app"
},
{
"default-channel": "latest/stable",
"id": "gjf3IPXoRiipCu9K0kVu52f0H56fIksg",
"name": "snap-store",
"type": "app"
},
{
"default-channel": "latest/stable",
"id": "IrwRHakqtzhFRHJOOPxKVPU0Kk7Erhcu",
"name": "snapd-desktop-integration",
"type": "app"
} }
], ],
"timestamp": "2022-10-07T02:25:51+00:00", "timestamp": "2023-03-19T12:00:00.0Z",
"type": "model" "type": "model"
}, },
"brand": { "brand": {
"id": "9XoOBkC2zdzx5CVZdl0ZVYuLpCo15ww0", "id": "canonical",
"username": "mwhudson", "username": "canonical",
"display-name": "Michael Hudson-Doyle", "display-name": "Canonical",
"validation": "unproven" "validation": "verified"
}, },
"actions": [ "actions": [
{ {
@ -66,68 +111,13 @@
"id": "", "id": "",
"structure": [ "structure": [
{ {
"name": "mbr", "name": "EFI System partition",
"filesystem-label": "",
"offset": null,
"offset-write": null,
"size": 440,
"type": "mbr",
"role": "mbr",
"id": "",
"filesystem": "",
"content": [
{
"source": "",
"target": "",
"image": "pc-boot.img",
"offset": null,
"offset-write": null,
"size": 0,
"unpack": false
}
],
"update": {
"edition": 1,
"preserve": null
}
},
{
"name": "BIOS Boot",
"filesystem-label": "",
"offset": 1048576,
"offset-write": {
"relative-to": "mbr",
"offset": 92
},
"size": 1048576,
"type": "DA,21686148-6449-6E6F-744E-656564454649",
"role": "",
"id": "",
"filesystem": "",
"content": [
{
"source": "",
"target": "",
"image": "pc-core.img",
"offset": null,
"offset-write": null,
"size": 0,
"unpack": false
}
],
"update": {
"edition": 2,
"preserve": null
}
},
{
"name": "ubuntu-seed",
"filesystem-label": "ubuntu-seed", "filesystem-label": "ubuntu-seed",
"offset": null, "offset": 1048576,
"offset-write": null, "offset-write": null,
"size": 1258291200, "size": 786432000,
"type": "EF,C12A7328-F81F-11D2-BA4B-00A0C93EC93B", "type": "C12A7328-F81F-11D2-BA4B-00A0C93EC93B",
"role": "system-seed", "role": "system-seed-null",
"id": "", "id": "",
"filesystem": "vfat", "filesystem": "vfat",
"content": [ "content": [
@ -158,10 +148,10 @@
{ {
"name": "ubuntu-boot", "name": "ubuntu-boot",
"filesystem-label": "ubuntu-boot", "filesystem-label": "ubuntu-boot",
"offset": null, "offset": 14930673664,
"offset-write": null, "offset-write": null,
"size": 786432000, "size": 786432000,
"type": "83,0FC63DAF-8483-4772-8E79-3D69D8477DE4", "type": "0FC63DAF-8483-4772-8E79-3D69D8477DE4",
"role": "system-boot", "role": "system-boot",
"id": "", "id": "",
"filesystem": "ext4", "filesystem": "ext4",
@ -193,10 +183,10 @@
{ {
"name": "ubuntu-save", "name": "ubuntu-save",
"filesystem-label": "ubuntu-save", "filesystem-label": "ubuntu-save",
"offset": null, "offset": 15717105664,
"offset-write": null, "offset-write": null,
"size": 33554432, "size": 33554432,
"type": "83,0FC63DAF-8483-4772-8E79-3D69D8477DE4", "type": "0FC63DAF-8483-4772-8E79-3D69D8477DE4",
"role": "system-save", "role": "system-save",
"id": "", "id": "",
"filesystem": "ext4", "filesystem": "ext4",
@ -209,10 +199,10 @@
{ {
"name": "ubuntu-data", "name": "ubuntu-data",
"filesystem-label": "ubuntu-data", "filesystem-label": "ubuntu-data",
"offset": null, "offset": 15750660096,
"offset-write": null, "offset-write": null,
"size": 1073741824, "size": 4294967296,
"type": "83,0FC63DAF-8483-4772-8E79-3D69D8477DE4", "type": "0FC63DAF-8483-4772-8E79-3D69D8477DE4",
"role": "system-data", "role": "system-data",
"id": "", "id": "",
"filesystem": "ext4", "filesystem": "ext4",