Skip to content

Commit b3f9e87

Browse files
K2GO-212 fix(bake): seed Forgejo in the rootfs bake (pass ENABLE_FORGEJO_SEED through env -i)
run_in_proot launches iiab-android under 'env -i', which drops every host variable not in its allowlist. ENABLE_FORGEJO_SEED was not listed, so iiab-android always read the default 0 and skipped the seed. Both bake paths hit this: GitHub Actions (bake-rootfs.yml) calls this script. Add the variable to the allowlist with a default of 1, so a Standard or Full bake seeds the admin, org, and example repos. Set ENABLE_FORGEJO_SEED=0 to skip it. Basic keeps forgejo off, so is_role_enabled skips it there.
1 parent a01df2d commit b3f9e87

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎tools/rootfs-builder/build-iiab-rootfs.sh‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -691,6 +691,7 @@ run_in_proot() {
691691
TMPDIR=/tmp TERM=xterm-256color LANG=C.UTF-8 \
692692
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \
693693
AUTO_INSTALL_SIZE="${TIER_NUM}" \
694+
ENABLE_FORGEJO_SEED="${ENABLE_FORGEJO_SEED:-1}" \
694695
DEBIAN_FRONTEND=noninteractive \
695696
debian_chroot=iiab \
696697
/bin/bash -lc "$1"

0 commit comments

Comments
 (0)