Skip to content
This repository was archived by the owner on Mar 19, 2026. It is now read-only.

Commit 03bf915

Browse files
committed
fix(just): make it a bit more generic so that this can be reused between repos
Signed-off-by: Tulip Blossom <tulilirockz@proton.me>
1 parent 0fb231e commit 03bf915

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Justfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
image_name := env("BUILD_IMAGE_NAME", "arch-bootc")
2+
image_tag := env("BUILD_IMAGE_TAG", "latest")
23
base_dir := env("BUILD_BASE_DIR", ".")
4+
filesystem := env("BUILD_FILESYSTEM", "ext4")
35

46
build-containerfile $image_name=image_name:
57
sudo podman build -t "${image_name}:latest" .
@@ -12,14 +14,13 @@ bootc *ARGS:
1214
-v /etc/containers:/etc/containers:Z \
1315
-v /var/lib/containers:/var/lib/containers \
1416
-v /dev:/dev \
15-
-v "{{base_dir}}":/data \
17+
-v "{{base_dir}}:/data" \
1618
--security-opt label=type:unconfined_t \
1719
"{{image_name}}:latest" bootc {{ARGS}}
1820

19-
generate-bootable-image $base_dir=base_dir:
21+
generate-bootable-image $base_dir=base_dir $filesystem=filesystem:
2022
#!/usr/bin/env bash
2123
if [ ! -e "${base_dir}/bootable.img" ] ; then
2224
fallocate -l 20G "${base_dir}/bootable.img"
2325
fi
24-
just bootc install to-disk --composefs-native --via-loopback /data/bootable.img --filesystem ext4 --wipe
25-
26+
just bootc install to-disk --composefs-native --via-loopback /data/bootable.img --filesystem "${filesystem}" --wipe

0 commit comments

Comments
 (0)