File tree Expand file tree Collapse file tree 8 files changed +26
-8
lines changed Expand file tree Collapse file tree 8 files changed +26
-8
lines changed Original file line number Diff line number Diff line change @@ -10,5 +10,7 @@ bootc-uki/extra-fcos/usr/bin/bootc
1010bootc-uki /extra-fcos /usr /lib /dracut /modules.d /37bootc /bootc-initramfs-setup
1111bootc-uki /extra /usr /bin /bootc
1212bootc-uki /extra /usr /lib /dracut /modules.d /37bootc /bootc-initramfs-setup
13+ bootc-uki /iid
1314bootc-uki /secureboot /
15+ bootc-uki /tmp
1416systemd-bootx64.efi
Original file line number Diff line number Diff line change 11#! /bin/bash
22
3- export FROM=" ${IMAGE :- quay.io/ fedora/ fedora-coreos: stable} "
4- export TAG=" ${IMAGE :- quay.io/ fedora/ fedora-coreos-bls: stable} "
3+ export FROM=" quay.io/fedora/fedora-coreos:stable"
4+ export TAG=" quay.io/fedora/fedora-coreos-bls:stable"
55export EXTRA=" extra-fcos"
66exec ./build
Original file line number Diff line number Diff line change @@ -20,5 +20,5 @@ podman build \
2020 --from " ${FROM} " \
2121 -t " ${TAG} " \
2222 -f Containerfile.stage1 \
23- --iidfile=tmp/ iid \
23+ --iidfile=iid \
2424 " ${EXTRA} "
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ mount /dev/vdb3 tmp
1616# rm -rf tmp/sysroot
1717mkdir -p tmp/sysroot/composefs
1818
19- IMAGE_ID=" $( sed s/sha256:// tmp/ iid) "
19+ IMAGE_ID=" $( sed s/sha256:// iid) "
2020./bootc internals cfs --repo tmp/sysroot/composefs oci pull containers-storage:" ${IMAGE_ID} "
2121COMPOSEFS_FSVERITY=" $( ./bootc internals cfs --repo tmp/sysroot/composefs oci compute-id --bootable " ${IMAGE_ID} " ) "
2222
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ set -euxo pipefail
4+
5+ export IMAGE=" quay.io/fedora/fedora-coreos-bls:stable"
6+ exec ./to-disk.sh
Original file line number Diff line number Diff line change 22
33set -euxo pipefail
44
5+ IMAGE=" ${IMAGE:- quay.io/ fedora/ fedora-bootc-bls: 42} "
6+
57bootc_project=" /srv/bootc"
6- IMAGE=" quay.io/fedora/fedora-bootc-bls:42"
78
89if [[ " $PWD " != " $bootc_project /examples" ]]; then
910 echo " Run this command from $bootc_project /examples"
@@ -15,11 +16,12 @@ if [[ ! -f systemd-bootx64.efi ]]; then
1516 exit 1
1617fi
1718
18- rm -rf ./test.img
19+ umount -R efi || true
20+ losetup --detach-all || true
21+
1922rm -rf ./test.img
2023truncate -s 15G test.img
2124
22- # --env RUST_LOG=debug \
2325# --env RUST_BACKTRACE=1 \
2426# -v /srv/bootc/target/release/bootc:/usr/bin/bootc:ro,Z \
2527podman run \
@@ -29,6 +31,7 @@ podman run \
2931 -v /var/lib/containers:/var/lib/containers \
3032 -v /var/tmp:/var/tmp \
3133 -v $PWD :/output \
34+ --env RUST_LOG=debug \
3235 --security-opt label=type:unconfined_t \
3336 " ${IMAGE} " \
3437 bootc install to-disk \
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ set -euxo pipefail
4+
5+ export IMAGE=" quay.io/fedora/fedora-coreos-uki:stable"
6+ exec ./to-filesystem.sh
Original file line number Diff line number Diff line change 22
33set -euxo pipefail
44
5+ IMAGE=" ${IMAGE:- quay.io/ fedora/ fedora-bootc-bls: 42} "
6+
57bootc_project=" /srv/bootc"
6- IMAGE=" quay.io/fedora/fedora-bootc-bls:42"
78
89if [[ " $PWD " != " $bootc_project /examples" ]]; then
910 echo " Run this command from $bootc_project /examples"
You can’t perform that action at this time.
0 commit comments