Skip to content

Commit

Permalink
With glibc-2.34.9000-34.fc36.x86_64, /etc/nsswitch.conf is no longer …
Browse files Browse the repository at this point in the history
…present, but tests work anyway.
  • Loading branch information
adelton committed Jan 5, 2022
1 parent 8604f62 commit 347c2eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM registry.fedoraproject.org/fedora
RUN sed -i 's/^enabled.*/enabled=1/' /etc/yum.repos.d/CentOS-Stream-PowerTools.repo || :
RUN dnf install -y --setopt=install_weak_deps=False python3-devel python3-setuptools python3-Cython make gcc libssh-devel openssh-server openssh-clients rpm-build
RUN grep hosts: /etc/nsswitch.conf && sed -i 's/^hosts:.*/hosts: files dns myhostname/' /etc/nsswitch.conf
RUN if test -f /etc/nsswitch.conf ; then grep hosts: /etc/nsswitch.conf && sed -i 's/^hosts:.*/hosts: files dns myhostname/' /etc/nsswitch.conf ; fi
RUN echo 'set enable-bracketed-paste off' >> ~root/.inputrc
RUN for i in rsa ecdsa ed25519 ; do /usr/libexec/openssh/sshd-keygen $i ; done
RUN mkdir ~/.ssh && echo localhost $( cat /etc/ssh/ssh_host_ecdsa_key.pub ) > ~/.ssh/known_hosts
Expand Down

0 comments on commit 347c2eb

Please sign in to comment.