phoebus_os/installer/live/payload/bin/phoebus-sys
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

12 lines
440 B
Bash
Executable file

#!/bin/sh
# Phoebus `sys` launcher (Debian-Live appliance).
set -eu
here="$(cd "$(dirname "$0")/.." && pwd)"
stage="${TMPDIR:-/tmp}/phoebus-payload"
if [ ! -x "$stage/bin/sys" ]; 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/sys" "$@"