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
10
10
bootc-uki /extra-fcos /usr /lib /dracut /modules.d /37bootc /bootc-initramfs-setup
11
11
bootc-uki /extra /usr /bin /bootc
12
12
bootc-uki /extra /usr /lib /dracut /modules.d /37bootc /bootc-initramfs-setup
13
+ bootc-uki /iid
13
14
bootc-uki /secureboot /
15
+ bootc-uki /tmp
14
16
systemd-bootx64.efi
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
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"
5
5
export EXTRA=" extra-fcos"
6
6
exec ./build
Original file line number Diff line number Diff line change @@ -20,5 +20,5 @@ podman build \
20
20
--from " ${FROM} " \
21
21
-t " ${TAG} " \
22
22
-f Containerfile.stage1 \
23
- --iidfile=tmp/ iid \
23
+ --iidfile=iid \
24
24
" ${EXTRA} "
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ mount /dev/vdb3 tmp
16
16
# rm -rf tmp/sysroot
17
17
mkdir -p tmp/sysroot/composefs
18
18
19
- IMAGE_ID=" $( sed s/sha256:// tmp/ iid) "
19
+ IMAGE_ID=" $( sed s/sha256:// iid) "
20
20
./bootc internals cfs --repo tmp/sysroot/composefs oci pull containers-storage:" ${IMAGE_ID} "
21
21
COMPOSEFS_FSVERITY=" $( ./bootc internals cfs --repo tmp/sysroot/composefs oci compute-id --bootable " ${IMAGE_ID} " ) "
22
22
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 2
2
3
3
set -euxo pipefail
4
4
5
+ IMAGE=" ${IMAGE:- quay.io/ fedora/ fedora-bootc-bls: 42} "
6
+
5
7
bootc_project=" /srv/bootc"
6
- IMAGE=" quay.io/fedora/fedora-bootc-bls:42"
7
8
8
9
if [[ " $PWD " != " $bootc_project /examples" ]]; then
9
10
echo " Run this command from $bootc_project /examples"
@@ -15,11 +16,12 @@ if [[ ! -f systemd-bootx64.efi ]]; then
15
16
exit 1
16
17
fi
17
18
18
- rm -rf ./test.img
19
+ umount -R efi || true
20
+ losetup --detach-all || true
21
+
19
22
rm -rf ./test.img
20
23
truncate -s 15G test.img
21
24
22
- # --env RUST_LOG=debug \
23
25
# --env RUST_BACKTRACE=1 \
24
26
# -v /srv/bootc/target/release/bootc:/usr/bin/bootc:ro,Z \
25
27
podman run \
@@ -29,6 +31,7 @@ podman run \
29
31
-v /var/lib/containers:/var/lib/containers \
30
32
-v /var/tmp:/var/tmp \
31
33
-v $PWD :/output \
34
+ --env RUST_LOG=debug \
32
35
--security-opt label=type:unconfined_t \
33
36
" ${IMAGE} " \
34
37
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 2
2
3
3
set -euxo pipefail
4
4
5
+ IMAGE=" ${IMAGE:- quay.io/ fedora/ fedora-bootc-bls: 42} "
6
+
5
7
bootc_project=" /srv/bootc"
6
- IMAGE=" quay.io/fedora/fedora-bootc-bls:42"
7
8
8
9
if [[ " $PWD " != " $bootc_project /examples" ]]; then
9
10
echo " Run this command from $bootc_project /examples"
You can’t perform that action at this time.
0 commit comments