diff options
-rwxr-xr-x | create-fhs-dirs | 8 | ||||
-rw-r--r-- | 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 <<EOF +/run /var/run +/proc/mounts /etc/mtab +EOF + # Fix permissions and ownerships for some special cases. chown "$owner:$group" "$target/." chmod "$perms" "$target/." diff --git a/fhs-dirs.morph b/fhs-dirs.morph index 533c68a..a954979 100644 --- a/fhs-dirs.morph +++ b/fhs-dirs.morph @@ -12,7 +12,6 @@ "install -d \"$DESTDIR/etc/init.d\"", "install -m 744 rcS \"$DESTDIR/etc/rcS\"", "install -m 644 ld.so.conf \"$DESTDIR/etc/ld.so.conf\"", - "ln -s /proc/mounts \"$DESTDIR\"/etc/mtab", "echo baserock > \"$DESTDIR\"/etc/hostname" ] } |