diff --git a/build.sh b/build.sh index 3a8e90b4..88fc8fc2 100755 --- a/build.sh +++ b/build.sh @@ -996,6 +996,14 @@ configure_live_operator_session() { chmod 0644 "${MOUNT_POINT}/etc/resolv.conf" fi + # FreeBSD packages ship python3.11 but not a bare python3 symlink. + # Scripts that use /usr/bin/env python3 break without this. + if [ -x "${MOUNT_POINT}/usr/local/bin/python3.11" ] && \ + [ ! -e "${MOUNT_POINT}/usr/local/bin/python3" ]; then + ln -sf python3.11 "${MOUNT_POINT}/usr/local/bin/python3" + ln -sf python3.11 "${MOUNT_POINT}/usr/local/bin/python" + fi + mkdir -p "${MOUNT_POINT}/usr/local/etc/sddm.conf.d" install -m 0644 "${LIVE_SESSION_DIR}/sddm.conf" \ "${MOUNT_POINT}/usr/local/etc/sddm.conf.d/50-clawdie-live.conf"