added support for copying some default files (resolv.conf, localtime,
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Wed, 22 Oct 2003 18:20:22 +0000 (18:20 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Wed, 22 Oct 2003 18:20:22 +0000 (18:20 +0000)
krb-conf,...)

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@278 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/scripts/vserver-build.functions

index 20829d2..d43baa3 100644 (file)
@@ -185,6 +185,13 @@ function initFilesystem
     while read spec; do
        makeDevEntry "$VDIR"/dev $spec
     done <$_DEV_FILE
+
+    findAndCopy "$VDIR"/etc/hosts         "$CONFDIR"/.defaults/files/hosts "$CONFDIR/.distributions/$DISTRIBUTION"/files/hosts \
+                                         "$DISTRIBDIR/$DISTRIBUTION"/files/hosts "$DISTRIBDIR"/defaults/files/hosts ""
+
+    for i in nsswitch.conf krb5.conf krb.conf krb.realms ldap.conf localtime resolv.conf; do
+       findAndCopy "$VDIR"/etc/$i  "$CONFDIR/.defaults/files/$i" "$CONFDIR/.distributions/$DISTRIBUTION"/files/$i" ""
+    done
 }
 
 function initVariables