]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
base/init.sh: create /run/log
authorStefan Reimer <it@startux.de>
Mon, 18 Feb 2013 11:05:23 +0000 (12:05 +0100)
committerHarald Hoyer <harald@redhat.com>
Mon, 18 Feb 2013 11:05:23 +0000 (12:05 +0100)
If the systemd module is not used /run/log is not created which results
in dangeling softlink from /var/log which causes stuff to fail.

modules.d/99base/init.sh

index 37b59967410b1c4306d59b18cae02b468a947071..fe69b3e1a9710a19a47ac82397739a33a112d43a 100755 (executable)
@@ -82,6 +82,7 @@ fi
 trap "emergency_shell Signal caught!" 0
 
 [ -d /run/initramfs ] || mkdir -p -m 0755 /run/initramfs
+[ -d /run/log ] || mkdir -p -m 0755 /run/log
 
 export UDEVVERSION=$(udevadm --version)
 if [ $UDEVVERSION -gt 166 ]; then