Add installer/live/build.sh: overlay the static installer, the OpenCode manifest and the Debian tools the standard live image lacks (cryptsetup, btrfs-progs, gdisk, dosfstools, parted, util-linux-extra) onto a Debian-Live stable base, patch the boot config for a serial console, and preserve the hybrid BIOS+UEFI boot. The live squashfs is never repacked and libc is never bundled, so the appliance is unchanged and the target remains Gentoo-only. Records ADR 0005 and the implementation plan.
15 lines
623 B
Bash
Executable file
15 lines
623 B
Bash
Executable file
#!/bin/sh
|
|
# Phoebus installer launcher (Debian-Live appliance).
|
|
#
|
|
# Stages the payload to a writable, executable location, puts the bundled
|
|
# disk/encryption/filesystem tools on PATH, and runs the static installer.
|
|
set -eu
|
|
here="$(cd "$(dirname "$0")/.." && pwd)"
|
|
stage="${TMPDIR:-/tmp}/phoebus-payload"
|
|
if [ ! -x "$stage/bin/phoebus-installer" ]; then
|
|
mkdir -p "$stage"
|
|
cp -a "$here/." "$stage/"
|
|
fi
|
|
export PATH="$stage/tools/usr/sbin:$stage/tools/usr/bin:$stage/bin:$PATH"
|
|
export LD_LIBRARY_PATH="$stage/tools/usr/lib/x86_64-linux-gnu${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"
|
|
exec "$stage/bin/phoebus-installer" "$@"
|