-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (32 loc) · 926 Bytes
/
Makefile
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
OCI_IMAGE ?= quay.io/vrothberg/fedora-bootc-pi:41
DISK_TYPE ?= raw
ROOTFS ?= xfs
ARCH ?= arm64
BIB_IMAGE ?= quay.io/centos-bootc/bootc-image-builder:latest
.PHONY: oci-image
oci-image:
podman build --platform linux/$(ARCH) -t $(OCI_IMAGE) .
# See https://github.com/osbuild/bootc-image-builder
.PHONY: disk-image
disk-image:
sh ./tools/check_ssh.sh
mkdir -p ./output
podman run \
--rm \
-it \
--privileged \
--pull=newer \
--security-opt label=type:unconfined_t \
-v ./config.toml:/config.toml:ro \
-v ./output:/output \
-v /var/lib/containers/storage:/var/lib/containers/storage \
$(BIB_IMAGE) \
--target-arch $(ARCH) \
--type $(DISK_TYPE) \
--rootfs $(ROOTFS) \
--local \
$(OCI_IMAGE)
.PHONY: firmware
firmware:
mkdir -p firmware-files
podman run --privileged --platform linux/$(ARCH) --pull=never -it --rm -v ./firmware-files:/tmp/efi -v ./tools:/tools $(OCI_IMAGE) /tools/fetch_efi.sh