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 1
1
FROM quay.io/fedora/fedora-bootc:42
2
2
COPY extra /
3
- COPY cfsctl /usr/bin
3
+ COPY bootc /usr/bin
4
4
5
5
RUN passwd -d root
6
6
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
8
8
RUN set -x; \
9
9
kver=$(cd /usr/lib/modules && echo *); \
10
10
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
4
4
5
5
cd " ${0%/* } "
6
6
7
- cargo build --release --features=pre-6.15 -- bin cfsctl --bin composefs-setup-root
7
+ cargo build --release --bin bootc --bin bootc-initramfs-setup
8
8
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 /
11
11
12
12
mkdir -p tmp
13
13
14
- sudo podman build \
14
+ podman build \
15
15
-t quay.io/fedora/fedora-bootc-bls:42 \
16
16
-f Containerfile \
17
17
--iidfile=tmp/iid \
18
+ .
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ OnFailureJobMode=isolate
27
27
28
28
[Service]
29
29
Type =oneshot
30
- ExecStart =/usr/bin/composefs-setup-root
30
+ ExecStart =/usr/bin/bootc-initramfs-setup
31
31
StandardInput =null
32
32
StandardOutput =journal
33
33
StandardError =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 1
1
FROM quay.io/fedora/fedora-bootc:42
2
2
COPY extra /
3
- COPY cfsctl /usr/bin
3
+ COPY bootc /usr/bin
4
4
5
5
RUN passwd -d root
6
6
Original file line number Diff line number Diff line change @@ -4,14 +4,14 @@ set -eux
4
4
5
5
cd " ${0%/* } "
6
6
7
- cargo build --release --features=pre-6.15 -- bin cfsctl --bin composefs-setup-root
7
+ cargo build --release --bin bootc --bin bootc-initramfs-setup
8
8
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 /
11
11
12
12
mkdir -p tmp
13
13
14
- sudo podman build \
14
+ podman build \
15
15
-t quay.io/fedora/fedora-bootc-base-uki:42 \
16
16
-f Containerfile.stage1 \
17
17
--iidfile=tmp/iid \
Original file line number Diff line number Diff line change @@ -4,16 +4,16 @@ set -eux
4
4
5
5
cd " ${0%/* } "
6
6
7
- cargo build --release --features=pre-6.15 -- bin cfsctl --bin composefs-setup-root
7
+ cargo build --release --bin bootc
8
8
9
- cp ../../target/release/cfsctl .
9
+ cp ../../target/release/bootc .
10
10
11
11
rm -rf tmp/sysroot
12
12
mkdir -p tmp/sysroot/composefs
13
13
14
14
IMAGE_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} " ) "
17
17
18
18
# See: https://wiki.archlinux.org/title/Unified_Extensible_Firmware_Interface/Secure_Boot
19
19
# Alternative to generate keys for testing: `sbctl create-keys`
@@ -42,6 +42,6 @@ sudo podman build \
42
42
43
43
rm -rf tmp/efi
44
44
mkdir -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
27
27
28
28
[Service]
29
29
Type =oneshot
30
- ExecStart =/usr/bin/composefs-setup-root
30
+ ExecStart =/usr/bin/bootc-initramfs-setup
31
31
StandardInput =null
32
32
StandardOutput =journal
33
33
StandardError =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