From 58a9aa03efd4564781e053978b0035a52cccd212 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Fri, 25 Feb 2022 09:48:56 -0500 Subject: [PATCH] Add DNS domain to el8 network manager --- .../usr/lib/dracut/hooks/pre-trigger/01-confluent.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/confluent_osdeploy/el8/initramfs/usr/lib/dracut/hooks/pre-trigger/01-confluent.sh b/confluent_osdeploy/el8/initramfs/usr/lib/dracut/hooks/pre-trigger/01-confluent.sh index fad12fe2..5d6def4a 100644 --- a/confluent_osdeploy/el8/initramfs/usr/lib/dracut/hooks/pre-trigger/01-confluent.sh +++ b/confluent_osdeploy/el8/initramfs/usr/lib/dracut/hooks/pre-trigger/01-confluent.sh @@ -161,6 +161,11 @@ done < /etc/confluent/confluent.deploycfg if [ -e /lib/nm-lib.sh ]; then . /lib/nm-lib.sh nm_generate_connections + if [ ! -z "$dnsdomain" ] && [ "$dnsdomain" != "null" ]; then + sed -i s/dns-search=/dns-search=$dnsdomain/ /run/NetworkManager/system-connections/$ifname.nmconnection + + fi + if [[ "$ifname" == ib* ]]; then sed -i s/type=ethernet/type=infiniband/ /run/NetworkManager/system-connections/$ifname.nmconnection if ! grep '\[infiniband\]' /run/NetworkManager/system-connections/$ifname.nmconnection > /dev/null; then