dracut has a symlink from /var/log to /run/log in the initramfs
Some programs e.g. systemd-journald expect a directory in /var/log as
the marker to do some actions. Here journald tries to flush
/run/log/journal to /var/log/journal, if the directory is seen.
dracut-038-32.git20141216.fc21 has been submitted as an update for Fedora 21.
*** Bug 1169269 has been marked as a duplicate of this bug. ***
Harald, does /var/log have to exist? IIUC, your patch fixes the problem by delaying the creation of the /var/log link, but it is still a race condition. If systemd-journald was restarted, then it'll see /var/log exists. It would be nicer to get rid of the symlink entirely.
(In reply to Zbigniew Jędrzejewski-Szmek from comment #3)
> Harald, does /var/log have to exist? IIUC, your patch fixes the problem by
> delaying the creation of the /var/log link, but it is still a race
> condition. If systemd-journald was restarted, then it'll see /var/log
> exists. It would be nicer to get rid of the symlink entirely.
/var/log does not point to /run/log now. That is the trick.
Because /run/log/journal existed, /var/log/journal also existed and thus journald was trying to flush to /var/log/journal.
/var/log now points to /run/initramfs/log, which is why it works now.
* should fix your issue,
* was pushed to the Fedora 21 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing dracut-038-32.git20141216.fc21'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
dracut-038-32.git20141216.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report.