rm -rf /usr/lib/dracut/dracut.conf.d/50-nss-softokn.conf && \
[[ -e /usr/bin/qemu-kvm ]] || ln -sf /usr/libexec/qemu-kvm /usr/bin/qemu-kvm && \
[[ -e /usr/bin/qemu-system-$(uname -m) ]] || ln -sv /usr/libexec/qemu-kvm /usr/bin/qemu-system-$(uname -m)
+
+# force non-hostonly mode, but keep all the other config
+# this workaround is needed to pass crypt tests with rd.auto
+RUN \
+if [[ "${DISTRIBUTION}" =~ "centos:" ]]; then \
+ echo 'hostonly="no"' > /usr/lib/dracut/dracut.conf.d/02-dist.conf \
+; fi