summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Powalowski <tpowa@archlinux.org>2006-07-18 18:40:42 +0200
committerTobias Powalowski <tpowa@archlinux.org>2006-07-18 18:40:42 +0200
commita72bbda4bb56648a513ac17a868cfc2f3f8e3f91 (patch)
tree97628cdc829515bd8d2f11f0b9a1f3a138871daf
parent2e36bf176b4947754e3f2bac4f5ed670a92c7e61 (diff)
downloadmkinitcpio-a72bbda4bb56648a513ac17a868cfc2f3f8e3f91.tar.gz
mkinitcpio-a72bbda4bb56648a513ac17a868cfc2f3f8e3f91.tar.xz
'fixed dir creation for symlinks in other dirs'
git-svn-id: http://projects.archlinux.org/svn/initramfs/mkinitcpio@132 880c04e9-e011-0410-abf7-b926e227c9cd
-rw-r--r--functions1
1 files changed, 1 insertions, 0 deletions
diff --git a/functions b/functions
index 7d54914..086e707 100644
--- a/functions
+++ b/functions
@@ -85,6 +85,7 @@ add_symlink ()
fil="${1}"
dest="${2##$BASEDIR}"
add_dir $(dirname "${dest}")
+ add_dir $(dirname "${fil}")
if ! grep "slink ${dest} " "${FILELIST}" 2>&1 > /dev/null; then
msg " adding link ${fil} -> ${dest}"
echo "slink ${fil} ${dest} $(stat -c '%a' ${fil}) 0 0" >> "${FILELIST}"