From 10f8222ae4172220c7422719550107257d4aedff Mon Sep 17 00:00:00 2001 From: Richard Maw Date: Wed, 16 May 2012 09:42:38 +0100 Subject: fhs-dirs: generalize symlinks, /var/run -> /run Given we need more than one symlink now it is appropriate to provide a general mechanism for listing them, like with dirs /run is usually a tmpfs and /var/run is semantically the same anyway, so make is a symlink --- create-fhs-dirs | 8 +++++++- fhs-dirs.morph | 1 - 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/create-fhs-dirs b/create-fhs-dirs index fdab461..953d84a 100755 --- a/create-fhs-dirs +++ b/create-fhs-dirs @@ -78,7 +78,6 @@ var/cache var/lib var/lock var/log -var/run var/spool var/tmp " @@ -88,6 +87,13 @@ do install -d -o "$owner" -g "$group" -m "$perms" "$target/$dirname" done +while read link name; do + ln -s "$link" "$target/$name" +done < \"$DESTDIR\"/etc/hostname" ] } -- cgit v1.2.1