File tree Expand file tree Collapse file tree 3 files changed +38
-0
lines changed Expand file tree Collapse file tree 3 files changed +38
-0
lines changed Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ cd ..
3
+ ./to-filesystem-uki-cocl.sh
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ ./build-fcos-uki-cocl
You can’t perform that action at this time.
0 commit comments