Bug 5722

Summary: No log file in /var/log when using systemd
Product: [Runtime] System Startup Reporter: Yi Zhao <yi.zhao>
Component: system-startupAssignee: Chen Qi <Qi.Chen>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: bluelightning, ke.zou, kevin.tian, richard.purdie, sgw
Version: 1.6   
Target Milestone: 1.6 M3   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Yi Zhao 2014-01-14 08:04:55 UTC
git rev: master/1b636173ca88e5ccca1992f9a12367a1189fa674

Steps:
1. Add the following lines in conf/local.conf
DISTRO_FEATURES_append = " systemd"
VIRTUAL-RUNTIME_init_manager = "systemd"
DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit"

2. bitbake core-image-sato

When the system boot up, there are no log files (dmesg, boot, messages) in /var/log/. But the command "journalctl" can query all log.
Comment 1 Paul Eggleton 2014-01-14 11:21:03 UTC
I think this is semi-deliberate; at least we should have a proper discussion on the OE-Core mailing list about this before looking at changing it back. This was the commit where it changed:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=b18b210c1e68bd312785b4d956e628220b5a8c9a
Comment 2 Chen Qi 2014-02-10 05:43:15 UTC
I think it's a system adm choice. So I'd like to add some comments to the configuration file to make things clearer.

And I suggest keep the current behavior by default.

//Chen Qi
Comment 3 Paul Eggleton 2014-02-10 09:45:50 UTC
Sounds like a great idea :)
Comment 4 Chen Qi 2014-02-14 01:58:11 UTC
Module: openembedded-core.git
Branch: master
Commit: eba4f2bd2a0becc086f107dbd0d3ec5222c5eed2
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=eba4f2bd2a0becc086f107dbd0d3ec5222c5eed2

//Chen Qi