summaryrefslogtreecommitdiff
path: root/units
diff options
Diffstat (limited to 'units')
-rw-r--r--units/image/jobs.pxu18
1 files changed, 17 insertions, 1 deletions
diff --git a/units/image/jobs.pxu b/units/image/jobs.pxu
index efe8d4e..2cbbff5 100644
--- a/units/image/jobs.pxu
+++ b/units/image/jobs.pxu
@@ -69,4 +69,20 @@ plugin: shell
command:
ubuntucore_image_checks.py model-brand
estimated_duration: 2.0
-flags: preserve-locale \ No newline at end of file
+flags: preserve-locale
+
+id: image/model-grade-not-dangerous
+category_id: image
+summary: Check that the model grade is not missing or set to dangerous
+requires:
+ lsb.distributor_id == "Ubuntu Core" and int(lsb.release) >= 20
+description:
+ Images with the 'dangerous' grade (the lowest of all available grades)
+ results in certain security measures to be relaxed.
+ Images that require strict security related implementations must
+ have the model grade set to a grade higher than 'dangerous'.
+plugin: shell
+command:
+ ubuntucore_image_checks.py model-grade
+estimated_duration: 2.0
+flags: preserve-locale