Skip to content

Commit

Permalink
devel: add bootc-install script for troubleshooting
Browse files Browse the repository at this point in the history
A minimal test script that installs the centos-bootc container to a disk
image without using bootc-image-builder for investigating build or boot
issues when it's not clear if the source of the issue is BIB, or
something in the bootable container itself.
  • Loading branch information
achilleas-k authored and cgwalters committed Mar 1, 2024
1 parent 6bf69d2 commit 61b4e0c
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions devel/bootc-install
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/usr/bin/env bash
#
# This is a minimal test script that installs the centos-bootc container to a
# disk image without using bootc-image-builder. It's meant for investigating
# build or boot issues when it's not clear if the source of the issue is BIB,
# or something in the bootable container itself.

set -euo pipefail

container="$1"

echo "Creating disk"
truncate disk.raw --size 20G

echo "Running bootc install"
sudo podman run \
--rm \
-it \
--privileged \
--pull=newer \
--security-opt label=type:unconfined_t \
-v ./disk.raw:/disk.raw \
--pid=host \
"${container}" \
bootc install to-disk --via-loopback "/disk.raw"

0 comments on commit 61b4e0c

Please sign in to comment.