From: Harald Hoyer Date: Tue, 31 Jul 2012 09:44:40 +0000 (+0200) Subject: dracut.sh: do not copy /var/run and /var/lock from the system X-Git-Tag: 023~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c83d7d5bfdd07cee8061c197bce66b50576d2c6;p=thirdparty%2Fdracut.git dracut.sh: do not copy /var/run and /var/lock from the system https://bugs.gentoo.org/show_bug.cgi?id=428142 If /var/run and /var/lock are real directories, we would end up with: var/lock/lock -> /run/lock var/run/run -> /run --- diff --git a/dracut.sh b/dracut.sh index 46f3a5b91..54a9e7d3c 100755 --- a/dracut.sh +++ b/dracut.sh @@ -810,7 +810,7 @@ if [[ $prefix ]]; then fi if [[ $kernel_only != yes ]]; then - for d in usr/bin usr/sbin bin etc lib sbin tmp usr var var/log var/run var/lock $libdirs; do + for d in usr/bin usr/sbin bin etc lib sbin tmp usr var var/log $libdirs; do [[ -e "${initdir}${prefix}/$d" ]] && continue if [ -L "/$d" ]; then inst_symlink "/$d" "${prefix}/$d"