Pass APT_PROXY=http://host:3142 to build-in-container.sh to route all apt traffic through a local cache. Also supports --apt-proxy flag. Mirrors in auto/config are set from BEE_APT_PROXY env when present. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
46 lines
1.6 KiB
Bash
Executable File
46 lines
1.6 KiB
Bash
Executable File
#!/bin/sh
|
|
# auto/config — live-build configuration for bee ISO
|
|
# Runs automatically when lb config is called.
|
|
# See: man lb_config
|
|
|
|
set -e
|
|
|
|
. "$(dirname "$0")/../VERSIONS"
|
|
|
|
# Pin the exact kernel ABI detected by build.sh so the ISO kernel matches
|
|
# the kernel headers used to compile NVIDIA modules. Falls back to meta-package
|
|
# when lb config is run manually without the environment variable.
|
|
if [ -n "${BEE_KERNEL_ABI:-}" ] && [ "${BEE_KERNEL_ABI}" != "auto" ]; then
|
|
LB_LINUX_PACKAGES="linux-image-${BEE_KERNEL_ABI}"
|
|
else
|
|
LB_LINUX_PACKAGES="linux-image"
|
|
fi
|
|
|
|
# Route apt through proxy if BEE_APT_PROXY is set (e.g. apt-cacher-ng).
|
|
# Usage: APT_PROXY=http://host:3142 ./build-in-container.sh
|
|
if [ -n "${BEE_APT_PROXY:-}" ]; then
|
|
_MIRROR="${BEE_APT_PROXY%/}/debian"
|
|
else
|
|
_MIRROR="https://deb.debian.org/debian"
|
|
fi
|
|
|
|
lb config noauto \
|
|
--distribution bookworm \
|
|
--architectures amd64 \
|
|
--binary-images iso-hybrid \
|
|
--bootloaders "grub-efi,syslinux" \
|
|
--debian-installer none \
|
|
--archive-areas "main contrib non-free non-free-firmware" \
|
|
--mirror-bootstrap "${_MIRROR}" \
|
|
--mirror-chroot "${_MIRROR}" \
|
|
--mirror-binary "${_MIRROR}" \
|
|
--security true \
|
|
--linux-flavours "amd64" \
|
|
--linux-packages "${LB_LINUX_PACKAGES}" \
|
|
--memtest none \
|
|
--iso-volume "EASY-BEE" \
|
|
--iso-application "EASY-BEE" \
|
|
--bootappend-live "boot=live components quiet nomodeset video=1920x1080 console=tty0 console=ttyS0,115200n8 loglevel=3 username=bee user-fullname=Bee modprobe.blacklist=nouveau" \
|
|
--apt-recommends false \
|
|
"${@}"
|