Skip to content

LordOS — a free, fast and secure GNU/Linux distribution based on Debian, with its own desktop environment: display server and Wayland compositor in C, a React UI engine on QuickJS, and private native apps.

collect.sh: journal lines without the host name

Federico Pereirae1f89a7efe49
diff --git a/tools/results/collect.sh b/tools/results/collect.sh
index 8485b99..b6c7530 100755
--- a/tools/results/collect.sh
+++ b/tools/results/collect.sh
@@ -69,7 +69,8 @@ J() { if sudo -n true 2>/dev/null; then sudo -n journalctl "$@"; else journalctl
J -b -u lordos --no-pager 2>/dev/null | grep -o "first frame on the monitor [0-9.]* s after the kernel started" ||
echo "(not in the journal: run with sudo, or as a member of the adm or systemd-journal group)"
echo "# the boot splash started: subtract the first line's monotonic time from the second's"
- J -b -o short-monotonic --no-pager 2>/dev/null | awk '/kernel: Linux version/ && !k { print; k = 1 } /Started plymouth-start.service/ && !p { print; p = 1 }' || true
+ J -b -o short-monotonic --no-pager 2>/dev/null | awk '/kernel: Linux version/ && !k { print; k = 1 } /Started plymouth-start.service/ && !p { print; p = 1 }' |
+ sed -E 's/^(\[[^]]*\]) [^ ]+ /\1 /' || true # without the host name: results are published
} > "$D/boot.txt"
cat > "$D/README.md" <<MD