启动控制台上的 systemd 作业实时树
A live tree of systemd jobs on the boot console

原始链接: https://codeberg.org/wvhulle/bootvine

bootvine 是一个 Linux 启动控制台 UI,它用待处理 systemd 任务的实时树和已完成单元中最慢单元的时间线,替代滚动的内核/systemd 日志。它还跟踪关机、就地处理诸如 LUKS 解锁等密码短语提示,并使用最近的 journal 行显示失败原因。要求包括作为 PID 1 的 systemd 246 或更新版本、libdbus、libsystemd、一个虚拟终端,以及用于完全启动可见性的 systemd initrd。它可以通过 Nix 示例虚拟机在不安装的情况下试用。文档采用 GPL-3.0-or-later 许可。

Hacker News 新 | 过去 | 评论 | 提问 | 展示 | 工作 | 提交 登录 启动控制台上的实时 systemd 任务树 ( codeberg.org/wvhulle ) 12 分 由 orhunp_ 1 小时前 | 隐藏 | 过去 | 收藏 | 1 条评论 帮助 reacharavindh 19 分钟前 [–] 喜欢。 现在我需要弄清楚能否用 OpenRC 做类似的事情。感谢启发。 回复 指南 | 常见问题 | 列表 | API | 安全 | 法律 | 申请 YC | 联系 搜索:
相关文章

原文

A live tree of systemd jobs on the boot console, in the spirit of nix-output-monitor. It replaces the scrolling kernel and systemd lines with the units still pending and, in the room the tree leaves, a timeline of the slowest ones that ran.

I started bootvine out of frustration with the boot screen of most Linux distributions: a wall of log lines scrolling past too fast to read, which never gave me any idea of what was going on.

A boot through the initrd into stage 2, with one failed unit

It also follows shutdowns, answers passphrase prompts such as a LUKS unlock in place, and shows why a unit failed with its last journal lines. The guide walks through each part of the screen.

Requirements

  • systemd ≥ 246 as PID 1
  • libdbus and libsystemd
  • a virtual terminal
  • a systemd initrd, to show the boot from the initrd as well as stage 2

See Install for each distribution.

Try it without installing

With Nix, boot a sample NixOS machine with slow and failing units in a QEMU window, without touching your system's boot:

nix run git+https://codeberg.org/wvhulle/bootvine#sample-vm-slow-services

It logs in as root; poweroff shows the shutdown. The guide lists the other sample machines and the scripted demos that play in a terminal.

Documentation

License

GPL-3.0-or-later.

联系我们 contact @ memedata.com