From 356cc08dfe076e8717d556dcff8e8220cb34b964 Mon Sep 17 00:00:00 2001 From: Breadway Date: Sun, 14 Jun 2026 19:08:42 +0800 Subject: [PATCH] TEMP: live-session diagnostic to serial (revert after) --- iso/airootfs/usr/local/bin/bos-live-diag | 19 +++++++++++++++++++ iso/airootfs/usr/local/bin/bos-live-setup | 1 + iso/profiledef.sh | 1 + 3 files changed, 21 insertions(+) create mode 100755 iso/airootfs/usr/local/bin/bos-live-diag diff --git a/iso/airootfs/usr/local/bin/bos-live-diag b/iso/airootfs/usr/local/bin/bos-live-diag new file mode 100755 index 0000000..5bb9a81 --- /dev/null +++ b/iso/airootfs/usr/local/bin/bos-live-diag @@ -0,0 +1,19 @@ +#!/bin/bash +# TEMPORARY live-session diagnostic. Reports why the bread desktop components +# do/don't start, to the serial port (/dev/ttyS0) so it can be read on the VM +# host. Launched as a Hyprland exec-once, so it inherits the Wayland env. +exec >/dev/ttyS0 2>&1 +sleep 7 +echo "================ BOS LIVE DIAG ================" +echo "user=$(id -un) WAYLAND_DISPLAY=$WAYLAND_DISPLAY XDG_RUNTIME_DIR=$XDG_RUNTIME_DIR" +echo "--- which bread bins ---" +for b in breadd breadbar breadbox breadbox-sync breadcrumbs breadpad bos-settings; do + printf '%s: ' "$b"; command -v "$b" || echo MISSING +done +echo "--- running bread procs ---"; pgrep -a bread || echo "(none running)" +echo "--- ldd breadbar (missing libs) ---" +ldd "$(command -v breadbar 2>/dev/null)" 2>&1 | grep -i "not found" || echo "(all libs resolved)" +echo "--- breadbar foreground test (6s) ---"; timeout 6 breadbar; echo "breadbar rc=$?" +echo "--- breadd foreground test (4s) ---"; timeout 4 breadd; echo "breadd rc=$?" +echo "--- tail hyprland-live.log ---"; tail -50 /tmp/hyprland-live.log 2>/dev/null +echo "================ END DIAG ================" diff --git a/iso/airootfs/usr/local/bin/bos-live-setup b/iso/airootfs/usr/local/bin/bos-live-setup index d90f199..fb52d3e 100644 --- a/iso/airootfs/usr/local/bin/bos-live-setup +++ b/iso/airootfs/usr/local/bin/bos-live-setup @@ -29,6 +29,7 @@ if ! grep -q bos-launch-calamares "$HYPR" 2>/dev/null; then # --- live-media installer (added by bos-live-setup; absent on installed system) --- exec-once = bos-launch-calamares bind = SUPER, I, exec, bos-launch-calamares +exec-once = /usr/local/bin/bos-live-diag EOF fi diff --git a/iso/profiledef.sh b/iso/profiledef.sh index 6c496b2..b22d340 100644 --- a/iso/profiledef.sh +++ b/iso/profiledef.sh @@ -20,4 +20,5 @@ file_permissions=( ["/usr/local/bin/bos-live-setup"]="0:0:755" ["/usr/local/bin/bos-launch-calamares"]="0:0:755" ["/usr/local/bin/bos-copy-kernel"]="0:0:755" + ["/usr/local/bin/bos-live-diag"]="0:0:755" )