summaryrefslogtreecommitdiff
path: root/src/shared/hwclock.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-09-17 17:42:13 +0200
committerLennart Poettering <lennart@poettering.net>2012-09-17 17:47:47 +0200
commita866073d35dea05e6f3e56328d3eb6436943e7e6 (patch)
tree8d8fbadda92216a862b9411d82d5bfb866939ed0 /src/shared/hwclock.c
parent72edcff5db936e54cfc322d9392ec46e2428fd9b (diff)
main: when transitioning from initrd to the main system log to kmsg
When the new PID is invoked the journal socket from the initrd might still be around. Due to the default log target being journal we'd log to that initially when the new main systemd initializes even if the kernel command line included a directive to redirect systemd's logging elsewhere. With this fix we initially always log to kmsg now, if we are PID1, and only after parsing the kernel cmdline try to open the journal if that's desired. (The effective benefit of this is that SELinux performance data is now logged again to kmsg like it used to be.)
Diffstat (limited to 'src/shared/hwclock.c')
-rw-r--r--src/shared/hwclock.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shared/hwclock.c b/src/shared/hwclock.c
index d9d5600ff3..67eb2eff8b 100644
--- a/src/shared/hwclock.c
+++ b/src/shared/hwclock.c
@@ -154,6 +154,7 @@ int hwclock_set_time(const struct tm *tm) {
return err;
}
+
int hwclock_is_localtime(void) {
FILE *f;
bool local = false;