phoebus_os/installer/live/payload/bin/phoebus
Phoebus d6fa7c8dce feat(live): build a Debian-Live installer appliance ISO (no root)
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.
2026-09-20 12:49:31 -07:00

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" "$@"