From 5df51d163e6e1c34737ce3d6362a8a2d9c84d20f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=BD=D0=B0=D0=B1?= Date: Sun, 3 Mar 2024 10:43:38 +0100 Subject: [PATCH] ^(group|hosts) --- initrd/install.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/initrd/install.h b/initrd/install.h index 16638df..c864d55 100644 --- a/initrd/install.h +++ b/initrd/install.h @@ -32,7 +32,7 @@ if [ -e /etc/nsswitch.conf ]; then INST_CFG /etc/nsswitch.conf - databases="$(awk '/^group|hosts/ {for(i = 2; i <= NF; ++i) print $i}' /etc/nsswitch.conf | LC_ALL=C sort -u)" + databases="$(awk '/^(group|hosts)/ {for(i = 2; i <= NF; ++i) print $i}' /etc/nsswitch.conf | LC_ALL=C sort -u)" for db in $databases; do for f in /lib/*/"libnss_$db"*; do INST_LIB "$f"