From: Daniel Hokka Zakrisson Date: Mon, 28 Jul 2008 21:44:19 +0000 (+0000) Subject: Add the /dev/fd symlink that is expected by more and more things. X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3c85c5195a01df54c16127f0c7e7f27a83acd4c3;p=util-vserver.git Add the /dev/fd symlink that is expected by more and more things. git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2751 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- diff --git a/distrib/defaults/devs b/distrib/defaults/devs index 641e9de..90034c2 100644 --- a/distrib/defaults/devs +++ b/distrib/defaults/devs @@ -5,3 +5,4 @@ random c 1 8 644 urandom c 1 9 644 tty c 5 0 666 ptmx c 5 2 666 +fd l ../proc/self/fd 777 diff --git a/scripts/vserver-build.functions b/scripts/vserver-build.functions index 3e2b4f9..7e26efd 100644 --- a/scripts/vserver-build.functions +++ b/scripts/vserver-build.functions @@ -44,6 +44,9 @@ function makeDevEntry (f) touch "$dst" chmod $4 "$dst" ;; + (l) ln -s "$4" "$dst" + test -z "$5" || chmod "$5" "$dst" + ;; (*) echo "Unknown dev-entry mode '$3'" >&2 false ;;