Remove NIS entries from /etc/nsswitch.conf for WITHOUT_NIS.
We already modify various configuration files in /etc based on build configuration. This is not done for nsswitch.conf right now when setting WITHOUT_NIS. This breaks various utilities, including crond, that depend on working databases. Approved by: re (kib) MFC after: 1 month
This commit is contained in:
parent
72baa018d0
commit
b41afd430d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=224659
@ -256,6 +256,10 @@ distribution:
|
||||
${DESTDIR}/boot/device.hints
|
||||
.endif
|
||||
.endif
|
||||
.if ${MK_NIS} == "no"
|
||||
sed -i "" -e '/_compat:/d' -e 's/compat/files/' \
|
||||
${DESTDIR}/etc/nsswitch.conf
|
||||
.endif
|
||||
|
||||
distrib-dirs:
|
||||
mtree -eU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.root.dist -p ${DESTDIR}/
|
||||
|
Loading…
Reference in New Issue
Block a user