Summary: | sys-kernel/dracut-033-r3 creates broken /var/log symlink in img | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Nikoli <nikoli> |
Component: | [OLD] Core system | Assignee: | Amadeusz Żołnowski (RETIRED) <aidecoe> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | alexander |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Nikoli
2013-10-08 15:06:49 UTC
(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). + |