File tree Expand file tree Collapse file tree 11 files changed +61
-60
lines changed Expand file tree Collapse file tree 11 files changed +61
-60
lines changed Original file line number Diff line number Diff line change 11FROM quay.io/fedora/fedora-bootc:42
22COPY extra /
3- COPY cfsctl /usr/bin
3+ COPY bootc /usr/bin
44
55RUN passwd -d root
66
7- # need to have composefs setup root in the initramfs so we need this
7+ # need to have bootc-initramfs- setup in the initramfs so we need this
88RUN set -x; \
99 kver=$(cd /usr/lib/modules && echo *); \
1010 dracut -vf --install "/etc/passwd /etc/group" /usr/lib/modules/$kver/initramfs.img $kver;
Original file line number Diff line number Diff line change @@ -4,14 +4,15 @@ set -eux
44
55cd " ${0%/* } "
66
7- cargo build --release --features=pre-6.15 -- bin cfsctl --bin composefs-setup-root
7+ cargo build --release --bin bootc --bin bootc-initramfs-setup
88
9- cp ../../target/release/cfsctl .
10- cp ../../target/release/composefs-setup-root extra/usr/lib/dracut/modules.d/37composefs /
9+ cp ../../target/release/bootc .
10+ cp ../../target/release/bootc-initramfs-setup extra/usr/lib/dracut/modules.d/37bootc /
1111
1212mkdir -p tmp
1313
14- sudo podman build \
14+ podman build \
1515 -t quay.io/fedora/fedora-bootc-bls:42 \
1616 -f Containerfile \
1717 --iidfile=tmp/iid \
18+ .
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ OnFailureJobMode=isolate
2727
2828[Service]
2929Type =oneshot
30- ExecStart =/usr/bin/composefs-setup-root
30+ ExecStart =/usr/bin/bootc-initramfs-setup
3131StandardInput =null
3232StandardOutput =journal
3333StandardError =journal+console
Original file line number Diff line number Diff line change 1+ #! /usr/bin/bash
2+
3+ check () {
4+ return 0
5+ }
6+
7+ depends () {
8+ return 0
9+ }
10+
11+ install () {
12+ inst \
13+ " ${moddir} /bootc-initramfs-setup" /usr/bin/bootc-initramfs-setup
14+ inst \
15+ " ${moddir} /bootc-initramfs-setup.service" \
16+ " ${systemdsystemunitdir} /bootc-initramfs-setup.service"
17+
18+ $SYSTEMCTL -q --root " ${initdir} " add-wants \
19+ ' initrd-root-fs.target' ' bootc-initramfs-setup.service'
20+ }
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11FROM quay.io/fedora/fedora-bootc:42
22COPY extra /
3- COPY cfsctl /usr/bin
3+ COPY bootc /usr/bin
44
55RUN passwd -d root
66
Original file line number Diff line number Diff line change @@ -4,14 +4,14 @@ set -eux
44
55cd " ${0%/* } "
66
7- cargo build --release --features=pre-6.15 -- bin cfsctl --bin composefs-setup-root
7+ cargo build --release --bin bootc --bin bootc-initramfs-setup
88
9- cp ../../target/release/cfsctl .
10- cp ../../target/release/composefs-setup-root extra/usr/lib/dracut/modules.d/37composefs /
9+ cp ../../target/release/bootc .
10+ cp ../../target/release/bootc-initramfs-setup extra/usr/lib/dracut/modules.d/37bootc /
1111
1212mkdir -p tmp
1313
14- sudo podman build \
14+ podman build \
1515 -t quay.io/fedora/fedora-bootc-base-uki:42 \
1616 -f Containerfile.stage1 \
1717 --iidfile=tmp/iid \
Original file line number Diff line number Diff line change @@ -4,16 +4,16 @@ set -eux
44
55cd " ${0%/* } "
66
7- cargo build --release --features=pre-6.15 -- bin cfsctl --bin composefs-setup-root
7+ cargo build --release --bin bootc
88
9- cp ../../target/release/cfsctl .
9+ cp ../../target/release/bootc .
1010
1111rm -rf tmp/sysroot
1212mkdir -p tmp/sysroot/composefs
1313
1414IMAGE_ID=" $( sed s/sha256:// tmp/iid) "
15- ./cfsctl --repo tmp/sysroot/composefs oci pull containers-storage:" ${IMAGE_ID} "
16- COMPOSEFS_FSVERITY=" $( ./cfsctl --repo tmp/sysroot/composefs oci compute-id --bootable " ${IMAGE_ID} " ) "
15+ ./bootc internals cfs --repo tmp/sysroot/composefs oci pull containers-storage:" ${IMAGE_ID} "
16+ COMPOSEFS_FSVERITY=" $( ./bootc internals cfs --repo tmp/sysroot/composefs oci compute-id --bootable " ${IMAGE_ID} " ) "
1717
1818# See: https://wiki.archlinux.org/title/Unified_Extensible_Firmware_Interface/Secure_Boot
1919# Alternative to generate keys for testing: `sbctl create-keys`
@@ -42,6 +42,6 @@ sudo podman build \
4242
4343rm -rf tmp/efi
4444mkdir -p tmp/efi
45- ./cfsctl --repo tmp/sysroot/composefs oci pull containers-storage:" ${IMAGE_ID} "
46- ./cfsctl --repo tmp/sysroot/composefs oci compute-id --bootable " ${IMAGE_ID} "
47- ./cfsctl --repo tmp/sysroot/composefs oci prepare-boot " ${IMAGE_ID} " --bootdir tmp/efi
45+ ./bootc internals cfs --repo tmp/sysroot/composefs oci pull containers-storage:" ${IMAGE_ID} "
46+ ./bootc internals cfs --repo tmp/sysroot/composefs oci compute-id --bootable " ${IMAGE_ID} "
47+ ./bootc internals cfs --repo tmp/sysroot/composefs oci prepare-boot " ${IMAGE_ID} " --bootdir tmp/efi
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ OnFailureJobMode=isolate
2727
2828[Service]
2929Type =oneshot
30- ExecStart =/usr/bin/composefs-setup-root
30+ ExecStart =/usr/bin/bootc-initramfs-setup
3131StandardInput =null
3232StandardOutput =journal
3333StandardError =journal+console
Original file line number Diff line number Diff line change 1+ #! /usr/bin/bash
2+
3+ check () {
4+ return 0
5+ }
6+
7+ depends () {
8+ return 0
9+ }
10+
11+ install () {
12+ inst \
13+ " ${moddir} /bootc-initramfs-setup" /usr/bin/bootc-initramfs-setup
14+ inst \
15+ " ${moddir} /bootc-initramfs-setup.service" \
16+ " ${systemdsystemunitdir} /bootc-initramfs-setup.service"
17+
18+ $SYSTEMCTL -q --root " ${initdir} " add-wants \
19+ ' initrd-root-fs.target' ' bootc-initramfs-setup.service'
20+ }
You can’t perform that action at this time.
0 commit comments