File tree Expand file tree Collapse file tree 2 files changed +74
-0
lines changed Expand file tree Collapse file tree 2 files changed +74
-0
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ set -eux
4+
5+ curl http://192.168.122.1:8000/bootc -o bootc
6+ chmod +x bootc
7+
8+ IMAGE=quay.io/fedora/fedora-bootc-uki:42
9+
10+ # --env RUST_LOG=debug \
11+ # --env RUST_BACKTRACE=1 \
12+ podman run \
13+ --rm --privileged \
14+ --pid=host \
15+ -v /dev:/dev \
16+ -v /var/lib/containers:/var/lib/containers \
17+ -v /srv/bootc:/usr/bin/bootc:ro,Z \
18+ -v /var/tmp:/var/tmp \
19+ --security-opt label=type:unconfined_t \
20+ " ${IMAGE} " \
21+ bootc install to-disk \
22+ --composefs-native \
23+ --boot=uki \
24+ --source-imgref=" containers-storage:${IMAGE} " \
25+ --target-imgref=" ${IMAGE} " \
26+ --target-transport=" docker" \
27+ /dev/vdb \
28+ --filesystem=ext4 \
29+ --wipe
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ set -eux
4+
5+ curl http://192.168.122.1:8000/bootc -o bootc
6+ chmod +x bootc
7+
8+ IMAGE=quay.io/fedora/fedora-bootc-uki:42
9+
10+ if [[ ! -f /srv/systemd-bootx64.efi ]]; then
11+ echo " Needs /srv/systemd-bootx64.efi to exists for now"
12+ exit 1
13+ fi
14+
15+ # --env RUST_LOG=debug \
16+ # --env RUST_BACKTRACE=1 \
17+ podman run \
18+ --rm --privileged \
19+ --pid=host \
20+ -v /dev:/dev \
21+ -v /var/lib/containers:/var/lib/containers \
22+ -v /srv/bootc:/usr/bin/bootc:ro,Z \
23+ -v /var/tmp:/var/tmp \
24+ --security-opt label=type:unconfined_t \
25+ " ${IMAGE} " \
26+ bootc install to-disk \
27+ --composefs-native \
28+ --boot=uki \
29+ --source-imgref=" containers-storage:${IMAGE} " \
30+ --target-imgref=" ${IMAGE} " \
31+ --target-transport=" docker" \
32+ /dev/vdb \
33+ --filesystem=ext4 \
34+ --wipe
35+
36+ mkdir -p efi
37+ mount /dev/vdb2 /srv/efi
38+
39+ # Manual systemd-boot installation
40+ cp /srv/systemd-bootx64.efi /srv/efi/EFI/fedora/grubx64.efi
41+ mkdir -p /srv/efi/loader
42+ echo " timeout 5" > /srv/efi/loader/loader.conf
43+ rm -rf /srv/efi/EFI/fedora/grub.cfg
44+
45+ umount efi
You can’t perform that action at this time.
0 commit comments