# ls -la run/ var run/: итого 0 drwxr-xr-x 4 root root 80 окт. 8 18:42 . drwxr-xr-x 15 root root 380 окт. 8 18:42 .. drwxr-xr-x 2 root root 40 окт. 8 18:42 initramfs drwxr-xr-x 2 root root 40 окт. 8 18:42 lock var: итого 0 drwxr-xr-x 2 root root 100 окт. 8 18:42 . drwxr-xr-x 15 root root 380 окт. 8 18:42 .. lrwxrwxrwx 1 root root 11 окт. 8 18:42 lock -> ../run/lock lrwxrwxrwx 1 root root 10 окт. 8 18:42 log -> ../run/log lrwxrwxrwx 1 root root 6 окт. 8 18:42 run -> ../run /run/ has dir for /var/lock symlink, but not for /var/log. I am not sure why these dirs even are created in /run/, it should be tmpfs.
(In reply to Nikoli from comment #0) > I am not sure why these dirs even are created in /run/, it should be tmpfs. I don't see the problem. /run is mounted as tmpfs and all these dirs are created automatically on boot. For example /run/log (needed for journald): ./modules.d/98systemd/dracut-cmdline.sh:[ -d /run/log ] || mkdir -p -m 0755 /run/log ./modules.d/99base/init.sh:[ -d /run/log ] || mkdir -p -m 0755 /run/log
initramfs.img is minimal, there should not be any broken or unused file or dir.
Ah.. Sorry, I misunderstood you. I thought the bug is about symlinks. :) I believe this patch will not break anything: diff --git a/dracut.sh b/dracut.sh index d9533dd..49ee34f 100755 --- a/dracut.sh +++ b/dracut.sh @@ -1081,7 +1081,7 @@ if [[ $kernel_only != yes ]]; then fi done - for d in dev proc sys sysroot root run run/lock run/initramfs; do + for d in dev proc sys sysroot root run; do if [ -L "/$d" ]; then inst_symlink "/$d" else
Heh.. Harald made the same changes: http://git.kernel.org/cgit/boot/dracut/dracut.git/commit/?id=68b736b50fbd6bb952d9499296ec70a218e1f5da http://git.kernel.org/cgit/boot/dracut/dracut.git/commit/?id=8d89fc6bb1b5b1f4c8be0694a1e1200a09ae07d1
Thanks! + 18 Nov 2013; Amadeusz Żołnowski <aidecoe@gentoo.org> dracut-034-r1.ebuild, + +files/034-0007-dracut.sh-also-mkdir-run-lock-which-is.patch, + +files/034-0008-dracut.sh-no-need-to-make-subdirs-in-r.patch, + +files/034-0009-lvm-install-thin-utils-for-non-hostonl.patch, + +files/034-0010-module-setup.sh-add-comments-for-dracu.patch, + +files/034-0011-lvm-fix-thin-recognition.patch, + +files/034-0012-lvm-always-install-thin-utils-for-lvm.patch: + Fixed bug #487324 (redundant dirs) and bug #490098 (thin provisioning). +