summaryrefslogtreecommitdiff
path: root/repo/schroot/getent.patch
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2023-05-18 15:48:01 +0100
committerdavidovski <david@davidovski.xyz>2023-05-18 15:48:01 +0100
commite0a428e6c9067b90ce3078c2d50bc75c94047d7f (patch)
tree3cf0d6dfacb972e826dd772a0c53c899a18f9b30 /repo/schroot/getent.patch
parentb9fc4f41e38eaa6d27652d418b983d40d13ef82c (diff)
parenta5ee6fa1836ed3986be333d6c9b4eed8d639636b (diff)
Merge branch 'master' of git.cheetah.remote:xilinux/buildfilesHEADmaster
Diffstat (limited to 'repo/schroot/getent.patch')
-rw-r--r--repo/schroot/getent.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/repo/schroot/getent.patch b/repo/schroot/getent.patch
new file mode 100644
index 0000000..b89e63c
--- /dev/null
+++ b/repo/schroot/getent.patch
@@ -0,0 +1,25 @@
+From 6ffdd152d3fb07921c02e739ce5b47d1e177e7e6 Mon Sep 17 00:00:00 2001
+From: Andrea Brancaleoni <miwaxe@gmail.com>
+Date: Mon, 24 Aug 2015 18:39:16 +0200
+Subject: [PATCH] getent
+
+---
+ etc/setup.d/20nssdatabases | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git etc/setup.d/20nssdatabases etc/setup.d/20nssdatabases
+index 6f14c81..697bb1e 100755
+--- a/etc/setup.d/20nssdatabases
++++ b/etc/setup.d/20nssdatabases
+@@ -29,7 +29,7 @@ set -e
+ dup_nss()
+ {
+ info "Copying $1 database to $2"
+- getent "$1" > "$2"
++ getent "$1" > "$2" 2>/dev/null || cat "/etc/$1" > "$2"
+ }
+
+ if [ $STAGE = "setup-start" ] || [ $STAGE = "setup-recover" ]; then
+--
+2.5.0
+