Bug 753904

Summary: systemd ignores settings in /etc/systemd/system.conf
Product: [openSUSE] openSUSE 12.1 Reporter: Forgotten User 7XRNh5WElB <forgotten_7XRNh5WElB>
Component: BasesystemAssignee: E-mail List <bnc-team-screening>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: fcrozat
Version: Final   
Target Milestone: ---   
Hardware: All   
OS: openSUSE 12.1   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Forgotten User 7XRNh5WElB 2012-03-24 15:31:52 UTC
User-Agent:       Mozilla/5.0 (X11; Linux x86_64; rv:10.0.2) Gecko/20100101 Firefox/10.0.2

I set ShowStatus=yes and SysVConsole=yes in /etc/systemd/system.conf and reboot, but systemd ignores my orders.  Kernel command line does not have any settings which might override system.conf.

From a console:
> linux-1234:~ # cat /etc/systemd/system.conf | grep -E 'Status|Console'
> ShowStatus=yes
> SysVConsole=yes
> linux-1234:~ # systemctl show | grep -E 'Status|Console'
> ShowStatus=no
> SysVConsole=no
> linux-1234:~ # cat /proc/cmdline
> root=/dev/disk/by-id/ata-VBOX_HARDDISK_VB8362006a-7bc1993e-part2 resume=/dev/disk/by-id/ata-VBOX_HARDDISK_VB8362006a-7bc1993e-part1 splash=off quiet vga=0x317

Reproducible: Always
Comment 1 Frederic Crozat 2012-03-26 15:11:05 UTC
try removing quiet
Comment 2 Forgotten User 7XRNh5WElB 2012-03-26 16:22:08 UTC
Aha.  Yes, it shows a lot of "starting"/"started"/... without the quiet setting.  So systemd sees the quiet option and this overrides the settings in system.conf.  It even overrides "systemd.showconsole=yes" on the kernel command line.

It seems reasonable that systemd infers verbosity settings from this quiet option in the absence of explicit configuration.  But at the moment, it is impossible to suppress kernel-messages while showing systemd progress.  If this is intended behaviour, please consider this bug report an enhancement request.

My usecase: kernel messages sometimes hide the luks passphrase prompt from the initrd (e.g. user plugs in a keyboard to enter passphrase).  This confuses the unversed user.  The quiet option remedies this, but with systemd, the screen is frozen for almost a minute after the kernel calls init.
Comment 3 Frederic Crozat 2012-03-26 16:39:08 UTC
try to replace quiet with loglevel=0 : it should make sure systemd output is visible but kernel one isn't.
Comment 4 Forgotten User 7XRNh5WElB 2012-03-26 19:37:26 UTC
Thanks Frederic, this solves the problem as far as I am concerned, so I'm happy.
And I was wrong about systemd.show_console:  I just forgot the underscore.

However, the manpages suggests that system.conf overrides the quiet option while in fact the converse is true.  I think this should be fixed.
Comment 5 Kun Kun Zhang 2012-04-11 07:36:53 UTC
Resolved.