From 80e8efc84e1c2ca35d8ae871b9d1f7c4f2f779d7 Mon Sep 17 00:00:00 2001 From: Breadway Date: Sun, 14 Jun 2026 03:57:27 +0800 Subject: [PATCH] Capture live-session Hyprland output and fall back to a shell Redirect the live autologin compositor's stdout/stderr to /var/log/hyprland-live.log, and on exit drop to an interactive shell showing the return code instead of letting the getty autologin respawn-loop hide any startup failure behind a blank blinking cursor. Makes a failed live boot diagnosable and leaves the medium usable. --- iso/airootfs/root/.bash_profile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/iso/airootfs/root/.bash_profile b/iso/airootfs/root/.bash_profile index 9eb149e..390a22d 100644 --- a/iso/airootfs/root/.bash_profile +++ b/iso/airootfs/root/.bash_profile @@ -9,5 +9,11 @@ if [[ "$(tty)" == "/dev/tty1" ]] && [[ -z "$WAYLAND_DISPLAY" ]]; then # Software cursors: hardware-cursor planes are often unusable in VMs and # show as invisible/garbled; this is the reliable choice for a live medium. export WLR_NO_HARDWARE_CURSORS=1 - exec Hyprland + # Run the compositor, capturing its output so a failed live boot is + # diagnosable (Hyprland also keeps its own log under $XDG_RUNTIME_DIR/hypr/). + # On exit, drop to an interactive shell with the error in view instead of + # letting the getty autologin respawn-loop hide it behind a blank cursor. + Hyprland &>/var/log/hyprland-live.log + echo "Hyprland exited (rc=$?). Log: /var/log/hyprland-live.log" + exec bash -i fi