-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathjustfile
More file actions
41 lines (37 loc) · 1.17 KB
/
Copy pathjustfile
File metadata and controls
41 lines (37 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
export BB_REGISTRY := "ghcr.io"
export BB_REGISTRY_NAMESPACE := "blue-build"
export BB_GENISO_SECURE_BOOT_URL := "https://github.com/blue-build/base-images/raw/main/files/base/etc/pki/akmods/certs/akmods-blue-build.der"
export BB_GENISO_ENROLLMENT_PASSWORD := "bluebuild"
export BB_GENISO_VARIANT := "kinoite"
build *args:
bluebuild build {{args}}
build-all: (build "recipes/*.yml")
generate-iso recipe:
#!/usr/bin/env nu
let recipe = open {{ recipe }}
| default [] alt-tags
| select name alt-tags
let tag = if ($recipe.alt-tags | is-empty) {
'latest'
} else {
$recipe.alt-tags | first
}
let name = $recipe.name
let image = $'(
$env.BB_REGISTRY
)/(
$env.BB_REGISTRY_NAMESPACE
)/(
$name
):($tag)'
(^bluebuild
generate-iso
--iso-name $'($name)-($tag).iso'
--output-dir .iso/
image $image)
generate-secureboot-key:
openssl req -config ./openssl.cnf \
-new -x509 -newkey rsa:2048 \
-nodes -days 36500 -outform DER \
-keyout ./MOK.priv \
-out ./files/base/etc/pki/akmods/certs/akmods-blue-build.der