3

I'm using a small display with a resolution of 480x800 pixel. When I boot my raspberry-pi-system, using Ubuntu server 20.04.2 LTS, the systemd-boot-messages are shortened and thus unreadable on my small display .

What I've also observed is the fact that the systemd-boot-messages are only written in one single line. Meaning, if the message is longer, no new-line is used. Another thing is, the systemd-boot-messages don't use the entire space of my display, even if they could do so.

My question, is it possible to enable some kind of verbose mode? So that the entire message is displayed, while booting, even with use of new-lines?

Here a picture: https://i.postimg.cc/9QNd9Hkw/20210421-114747.jpg

paladin
  • 576
  • 3
  • 12

2 Answers2

1

EDIT 2

Perhaps LineMax= parameter in journal configuration can force line breaks that are reflected during the boot process itself (source). I did not try that. "Note that values below 79 are not accepted and will be bumped to 79." (I am not sure this suits you).


EDIT

By default, journalctl truncates lines longer than screen width, but in some cases, it may be better to enable wrapping instead of truncating. This can be controlled by the SYSTEMD_LESS environment variable, which contains options passed to less (the default pager) and defaults to FRSXMK (see less(1) and journalctl(1) for details).

By omitting the S option, the output will be wrapped instead of truncated. For example, start journalctl as follows:

$ SYSTEMD_LESS=FRXMK journalctl

To set this behaviour as default, export the variable from ~/.bashrc or ~/.zshrc.

(source).


With journalctl you can view system logs (albeit after, not during, boot).

Use journalctl --list-boots to see details on recorded boots, including hashes/boot ID (you should have enabled the persistent storage of log messages).

Then use journalctl /usr/lib/systemd/systemd -b <boot ID> to view system log for a specific boot process (or the current one if boot ID is omitted). You can also use -1 e.g. instead of the boot ID, to see the previous boot.

While viewing a log, you can use left and right arrows to view complete lines.

Also, sudo less -R /var/log/boot.log.1, or other log files.

Is that enough for you?

Related

  1. https://freedesktop.org/wiki/Software/systemd/Debugging/
  2. https://www.digitalocean.com/community/tutorials/how-to-use-journalctl-to-view-and-manipulate-systemd-logs
  3. https://unix.stackexchange.com/questions/229188/journalctl-how-to-prevent-text-from-truncating-in-terminal
1

Those shortened messages are just stock descriptions. You might want the opposite of a verbose mode. The documentation suggests a possibility.

StatusUnitFormat=

Takes either name or description as the value. If name, the system manager will use unit names in status messages, instead of the longer and more informative descriptions set with Description=, see systemd.unit(5).

Hopefully the unit names will be short enough to avoid truncation. And even if truncated, the partial name will be easier to match to a known list of units from /lib/systemd/system/ and /etc/systemd/system/.

To choose this, in the file /etc/systemd/system.conf, after the line

#StatusUnitFormat=description

which documents the default setting, add the line

StatusUnitFormat=name
Martin Thornton
  • 5,996
  • 12
  • 32
  • 43