Skip to content

Commit 488bc5e

Browse files
committed
DNM: DEMO FILES
1 parent 937d488 commit 488bc5e

File tree

3 files changed

+38
-0
lines changed

3 files changed

+38
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
FROM quay.io/fedora/fedora-bootc-bls:42 AS base
2+
3+
FROM base as kernel
4+
5+
ARG COMPOSEFS_FSVERITY
6+
7+
RUN --mount=type=secret,id=key \
8+
--mount=type=secret,id=cert <<EOF
9+
10+
echo "composefs=${COMPOSEFS_FSVERITY} rw" > /etc/kernel/cmdline
11+
12+
dnf install -y \
13+
systemd-ukify \
14+
sbsigntools \
15+
systemd-boot-unsigned
16+
17+
kver=$(cd /usr/lib/modules && echo *)
18+
ukify build \
19+
--linux "/usr/lib/modules/$kver/vmlinuz" \
20+
--initrd "/usr/lib/modules/$kver/initramfs.img" \
21+
--uname="${kver}" \
22+
--cmdline "@/etc/kernel/cmdline" \
23+
--os-release "@/etc/os-release" \
24+
--signtool sbsign \
25+
--secureboot-private-key "/run/secrets/key" \
26+
--secureboot-certificate "/run/secrets/cert" \
27+
--measure \
28+
--json pretty \
29+
--output "/boot/EFI/Linux/$kver.efi"
30+
EOF
31+
32+
FROM base as final
33+
COPY --from=final /boot /boot
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
cd ..
3+
./to-filesystem-uki-cocl.sh
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/bash
2+
./build-fcos-uki-cocl

0 commit comments

Comments
 (0)