You are not logged in.

#1 2018-04-09 13:09:50

Pryka
Member
Registered: 2018-02-07
Posts: 85

[SOLVED]How to set kernel to print it's log on system startup / GRUB2

Hello!

How I can force kernel to be verbose during boot process? I can only see systemd services start one by one but no log from kernel on startup.

This is my grub setting:

GRUB_CMDLINE_LINUX="rootflags=data=journal"
GRUB_CMDLINE_LINUX_DEFAULT=""
GRUB_DEFAULT=0
GRUB_DISABLE_RECOVERY=false
GRUB_DISTRIBUTOR="Arch"
GRUB_GFXMODE=auto
GRUB_GFXPAYLOAD_LINUX=keep
GRUB_PRELOAD_MODULES="part_gpt part_msdos"
GRUB_TERMINAL_INPUT=console
GRUB_TIMEOUT=15

Thanks in advance.

Last edited by Pryka (2018-04-09 17:19:49)

Offline

#2 2018-04-09 13:56:59

loqs
Member
Registered: 2014-03-06
Posts: 17,328

Re: [SOLVED]How to set kernel to print it's log on system startup / GRUB2

See Kernel_parameters and kernel-parameters.txt loglevel,  ignore_loglevel and debug (using debug will also trigger systemd to use debug level logging)

Online

#3 2018-04-09 14:14:54

Pryka
Member
Registered: 2018-02-07
Posts: 85

Re: [SOLVED]How to set kernel to print it's log on system startup / GRUB2

Thanks!

So I don't want to use debug because systemd will start in this mode as you say.

If I understand this correctly I can use loglevel=6 kernel parameter. And this will not touch systemd behaviour?

Offline

#4 2018-04-09 14:27:11

loqs
Member
Registered: 2014-03-06
Posts: 17,328

Re: [SOLVED]How to set kernel to print it's log on system startup / GRUB2

loglevel=7 will be fine as well systemd looks for the option debug

Online

#5 2018-04-09 17:19:34

Pryka
Member
Registered: 2018-02-07
Posts: 85

Re: [SOLVED]How to set kernel to print it's log on system startup / GRUB2

Great!

It's working. smile

Offline

Board footer

Powered by FluxBB