use real 'umount' program to unmount directories
[util-vserver.git] / 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