45 lines
1.4 KiB
Bash
Executable File
45 lines
1.4 KiB
Bash
Executable File
#!/bin/sh
|
|
|
|
#set -eu # lh_build or even included packages might have error or unset variables..
|
|
set +e
|
|
|
|
SELF_DIR=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
|
|
. "$SELF_DIR/common.sh"
|
|
|
|
ENV_FILE=${1:-}
|
|
[ -n "$ENV_FILE" ] || fail "Usage: run_profile_config.sh <env-file>"
|
|
load_env_file "$ENV_FILE"
|
|
|
|
[ -n "${LIVE_DIR:-}" ] || fail "LIVE_DIR is required"
|
|
mkdir -p "$LIVE_DIR"
|
|
|
|
env
|
|
cd "$LIVE_DIR" && exec lh_config \
|
|
-a $BASE__ARCH \
|
|
--distribution $BASE__DISTRIBUTION \
|
|
--apt $BASE__APT \
|
|
--apt-options "$BASE__APT_OPTIONS" \
|
|
--apt-secure $BASE__APT_SECURE \
|
|
--apt-recommends $BASE__APT_RECOMMENDS \
|
|
--mirror-bootstrap "$BASE__REPO_URL" \
|
|
--mirror-binary "$BASE__REPO_URL" \
|
|
--mirror-binary-security "$BASE__SECURITY_REPO_URL" \
|
|
--mirror-chroot "$BASE__REPO_URL" \
|
|
--mirror-chroot-security "$BASE__SECURITY_REPO_URL" \
|
|
--binary-images $BASE__BINARY_IMAGES \
|
|
--bootloader syslinux \
|
|
--syslinux-timeout 5 \
|
|
--syslinux-menu true \
|
|
--bootstrap debootstrap \
|
|
--debconf-frontend noninteractive \
|
|
--debian-installer live \
|
|
--bootappend-live "$BASE__BOOTAPPEND_LIVE" \
|
|
--linux-packages "$BASE__LINUX_PACKAGES" \
|
|
--union-filesystem $BASE__UNION_FILESYSTEM \
|
|
--packages-lists "$BASE__PACKAGES_LISTS" \
|
|
--iso-application $BASE__ISO_APPLICATION \
|
|
--hostname $BASE__HOSTNAME \
|
|
--username $BASE__USERNAME \
|
|
--templates config/templates \
|
|
"$LIVE_DIR"
|