-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wednesday, 2021-04-14 at 14:00 +0100, Peter Suetterlin wrote:
Carlos E. R. wrote:
Journalctl doen't list those (for me, or am I missing some option switch?),
No, they should be there.
journalctl -b
Just for clarity: boot.log (as created by plymouth) does not contain the kernel messages, but those messages printed on the terminal during the system startup, like [ OK ] Reached target Initrd Root Device.
Ah.
(Of course, especially the fail messages are of interest there.)
For that, I have: /etc/systemd/system/helloworld.service: Unit] Description=Plays a welcome sound when target multi-user is reached After=multi-user.target [Service] Type=oneshot RemainAfterExit=true StandardOutput=tty ExecStart=-/root/ThingsNeededForBoot/helloworld [Install] WantedBy=multi-user.target WantedBy=graphical.target and /root/ThingsNeededForBoot/helloworld has: #!/bin/bash echo echo "-----" echo systemctl --failed --no-pager if [ $? -eq 0 ] ; then cat /root/ThingsNeededForBoot/hal9.au > /dev/audio 2> /dev/null & /usr/bin/logger -t Mine -p daemon.info "Saying hello world." else echo echo "Something failed!" play -q /root/ThingsNeededForBoot/abitsilly.wav /usr/bin/logger -t Mine -p daemon.info "Something failed on boot." fi The sound thing fails, but the part of interest for you is the running of "systemctl --failed --no-pager", that prints on vttty1.
I cannot see those in the journalctl output. At least not on the Leap machine. Strange enough, I see comparable output on a Tumbleweed machine, coming from systemd: Mar 27 10:42:16 speedy systemd[1]: Reached target Initrd Root File System.
Maybe a difference coming from older systemd?
Dunno... - -- Cheers, Carlos E. R. (from openSUSE 15.2 x86_64 at Telcontar) -----BEGIN PGP SIGNATURE----- iHoEARECADoWIQQZEb51mJKK1KpcU/W1MxgcbY1H1QUCYHb1ERwccm9iaW4ubGlz dGFzQHRlbGVmb25pY2EubmV0AAoJELUzGBxtjUfV+XkAnieZ+o5GRs9kaStomT/G rzT2UsHBAKCDlZR56i+JOTs8DTVej5CTBOkFeA== =8yLI -----END PGP SIGNATURE-----