From 2cbf46a8366e3acc90eecce35794fdc2079e5268 Mon Sep 17 00:00:00 2001 From: Breadway Date: Sun, 14 Jun 2026 04:24:52 +0800 Subject: [PATCH] Log the live Hyprland session to a user-writable path liveuser can't write /var/log, so the .bash_profile redirect (Hyprland &>/var/log/hyprland-live.log) failed and bash aborted the line without ever launching the compositor. Log to /tmp/hyprland-live.log, which the live user can write. Co-Authored-By: Claude Opus 4.8 --- iso/airootfs/usr/local/bin/bos-live-setup | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/iso/airootfs/usr/local/bin/bos-live-setup b/iso/airootfs/usr/local/bin/bos-live-setup index 8944865..d642a17 100644 --- a/iso/airootfs/usr/local/bin/bos-live-setup +++ b/iso/airootfs/usr/local/bin/bos-live-setup @@ -45,8 +45,10 @@ cat >/home/liveuser/.bash_profile <<'EOF' if [[ "$(tty)" == /dev/tty1 ]] && [[ -z "$WAYLAND_DISPLAY" ]]; then export WLR_RENDERER_ALLOW_SOFTWARE=1 export WLR_NO_HARDWARE_CURSORS=1 - Hyprland &>/var/log/hyprland-live.log - echo "Hyprland exited (rc=$?). Log: /var/log/hyprland-live.log" + # Log to a user-writable path (/var/log is root-only; redirecting there + # would fail and silently keep the compositor from ever launching). + Hyprland &>/tmp/hyprland-live.log + echo "Hyprland exited (rc=$?). Log: /tmp/hyprland-live.log" exec bash -i fi EOF