Disable stock text installer on live image

This commit is contained in:
Sam & Claude 2026-05-13 18:32:55 +02:00 committed by 123kupola
parent 1a2d0b1d1f
commit 1a7ef84935

View file

@ -423,6 +423,14 @@ configure_live_installer_session() {
install -m 0755 "${LIVE_SESSION_DIR}/clawdie-live-commit.sh" \
"${MOUNT_POINT}/usr/local/bin/clawdie-live-commit.sh"
# The stock FreeBSD memstick starts bsdinstall from /etc/rc.local before
# our graphical live session can own the install flow. Preserve a copy for
# debugging, but disable the automatic text installer.
if [ -f "${MOUNT_POINT}/etc/rc.local" ]; then
cp "${MOUNT_POINT}/etc/rc.local" "${MOUNT_POINT}/etc/rc.local.freebsd-installer"
rm -f "${MOUNT_POINT}/etc/rc.local"
fi
mkdir -p "${MOUNT_POINT}/usr/local/etc/lightdm/lightdm.conf.d"
install -m 0644 "${LIVE_SESSION_DIR}/lightdm-live.conf" \
"${MOUNT_POINT}/usr/local/etc/lightdm/lightdm.conf.d/50-clawdie-live.conf"