Bug 5722 - No log file in /var/log when using systemd
Summary: No log file in /var/log when using systemd
Status: RESOLVED FIXED
Alias: None
Product: System Startup
Classification: Runtime
Component: system-startup (show other bugs)
Version: 1.6
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.6 M3
Assignee: Chen Qi
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2014-01-14 08:04 UTC by Yi Zhao
Modified: 2014-02-14 01:58 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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