summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2020-07-06 03:52:29 +0700
committerGitHub <noreply@github.com>2020-07-06 03:52:29 +0700
commitc7b0a8897cfa8573993f593fc2ed61e981a745a0 (patch)
tree8ed1f01d785d925cbf320786e3855eaa30214e77
parentb10bcb499fbe27725dd85bdb2e2c0beb4fe3b80f (diff)
parent2e4f60d495d46ec6d8d54fe3cab7f1dbf03f31e4 (diff)
downloadvyos-build-c7b0a8897cfa8573993f593fc2ed61e981a745a0.tar.gz
vyos-build-c7b0a8897cfa8573993f593fc2ed61e981a745a0.zip
Merge pull request #113 from kroy-the-rabbit/nsswitch-memoryfix
T2678: Fixing massive memory usage with ssh and large number of routes
-rw-r--r--data/live-build-config/includes.chroot/etc/nsswitch.conf21
1 files changed, 21 insertions, 0 deletions
diff --git a/data/live-build-config/includes.chroot/etc/nsswitch.conf b/data/live-build-config/includes.chroot/etc/nsswitch.conf
new file mode 100644
index 00000000..4119a672
--- /dev/null
+++ b/data/live-build-config/includes.chroot/etc/nsswitch.conf
@@ -0,0 +1,21 @@
+# /etc/nsswitch.conf
+#
+# Example configuration of GNU Name Service Switch functionality.
+# If you have the `glibc-doc-reference' and `info' packages installed, try:
+# `info libc "Name Service Switch"' for information about this file.
+
+passwd: files
+group: files
+shadow: files
+gshadow: files
+
+# Per T2678, commenting out myhostname
+hosts: files dns #myhostname
+networks: files
+
+protocols: db files
+services: db files
+ethers: db files
+rpc: db files
+
+netgroup: nis