You are not logged in.

#1 2014-07-24 11:28:40

bdantas
Member
Registered: 2014-05-13
Posts: 94

[SOLVED] How to make grub2 show only [FAIL] messages during boot?

How do I make grub2 be more quiet than "quiet"?

With "quiet" in the kernel command line, I would expect it to display only [FAIL] messages. However, what actually happens is that all boot status messages get printed to the console screen starting with a [FAIL] (i.e., even if only one thing fails, the boot process prints that failure and all the [OK]'s that follow).

(I am trying to recreate the old /var/log/boot but it would be simpler if I didn't have to deal with the scrollback buffer. See here: https://bbs.archlinux.org/viewtopic.php … 1#p1439361)

Last edited by bdantas (2014-08-23 02:06:45)

Offline

#2 2014-07-24 11:47:23

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] How to make grub2 show only [FAIL] messages during boot?

Offline

#3 2014-07-24 13:22:16

bdantas
Member
Registered: 2014-05-13
Posts: 94

Re: [SOLVED] How to make grub2 show only [FAIL] messages during boot?

I just did thanks to your tip. Unfortunately, now it does not even show my one [FAIL]--no boot status messages at all.

I also tried "systemd.show_status=1" for good measure but, as expected, it shows all the [FAIL] and [OK] messages from the beginning (i.e., behavior of "quiet" + "systemd.show_status=1" is the same as having neither parameter).

Offline

#4 2014-07-24 13:24:43

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] How to make grub2 show only [FAIL] messages during boot?

Does 'systemctl --failed' show the [FAIL]ed units?

Offline

#5 2014-07-24 13:28:24

bdantas
Member
Registered: 2014-05-13
Posts: 94

Re: [SOLVED] How to make grub2 show only [FAIL] messages during boot?

It does not. Among "systemctl --failed," "sudo systemctl --failed," "journalctl -b -p err," and "sudo journalctl -b -p err" only the last one mentions the [FAIL]ed unit.

Last edited by bdantas (2014-07-24 13:32:04)

Offline

#6 2014-07-24 13:32:05

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] How to make grub2 show only [FAIL] messages during boot?

Have you tried 'systemd.show_status=auto'?

systemd.show_status=
           Takes a boolean argument or the constant auto. If true, shows terse service status updates on the
           console during bootup.  auto behaves like false until a service fails or there is a significant delay
           in boot. Defaults to true, unless quiet is passed as kernel command line option in which case it
           defaults to auto.

Last edited by karol (2014-07-24 13:32:21)

Offline

#7 2014-07-24 13:39:03

bdantas
Member
Registered: 2014-05-13
Posts: 94

Re: [SOLVED] How to make grub2 show only [FAIL] messages during boot?

Just tried it. It seems that's the default behavior, as the output is identical to just having "quiet" (i.e., with "quiet" + "systemd.show_status=auto" there are no boot status messages until [FAIL] shows up, but then it prints all the [OK]'s that follow).

I am starting to get a sinking feeling that what I am looking for is not possible.

Last edited by bdantas (2014-07-24 13:48:03)

Offline

#8 2014-07-24 14:12:53

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] How to make grub2 show only [FAIL] messages during boot?

It would be nice to at least get a clarification if that's the intended behavior, or is it a bug.

Offline

#9 2014-07-24 14:16:03

bdantas
Member
Registered: 2014-05-13
Posts: 94

Re: [SOLVED] How to make grub2 show only [FAIL] messages during boot?

I agree, but I wouldn't know who or where to ask.

Offline

#10 2014-07-24 14:34:05

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] How to make grub2 show only [FAIL] messages during boot?

See http://www.freedesktop.org/wiki/Software/systemd/
The quickest might be asking about this on IRC.

Offline

#11 2014-08-14 13:44:20

bdantas
Member
Registered: 2014-05-13
Posts: 94

Re: [SOLVED] How to make grub2 show only [FAIL] messages during boot?

I asked systemd's Lennart Poettering by email: "Is it possible to display only [FAIL]ed units during boot?"

His answer: "No, we currently don't have such a mode. But I think this would be quite useful, so I have added this to the TODO list now!"

Offline

#12 2014-08-15 01:26:11

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] How to make grub2 show only [FAIL] messages during boot?

Offline

#13 2014-08-15 01:32:37

bdantas
Member
Registered: 2014-05-13
Posts: 94

Re: [SOLVED] How to make grub2 show only [FAIL] messages during boot?

Looks about right smile

Since this is an upstream issue, I'll mark as solved.

Last edited by bdantas (2014-08-23 02:06:08)

Offline

Board footer

Powered by FluxBB