Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add dnsconfd #6235

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions anaconda.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,9 @@ Requires: skopeo
Requires: nvme-cli
# Needed for bootc
Requires: podman
# needed for encrypted DNS
Requires: dnsconfd
Requires: dnsconfd-dracut

%description install-img-deps
The anaconda-install-img-deps metapackage lists all boot.iso installation
Expand Down Expand Up @@ -353,6 +356,9 @@ Requires: dracut-live
Requires: xz
Requires: python3-kickstart
Requires: iputils
# Required for encrypted DNS
Requires: dnsconfd-dracut
Requires: dnsconfd

%description dracut
The 'anaconda' dracut module handles installer-specific boot tasks and
Expand Down
14 changes: 14 additions & 0 deletions pyanaconda/modules/network/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,17 @@ def collect_requirements(self):
reason="Necessary for biosdevname network device naming feature."
))

# encrypted dns
if self._is_using_dnsconfd(kernel_arguments):
requirements.append(Requirement.for_package(
"dnsconfd",
reason="Necessary for encrypted DNS configurtion."
))
requirements.append(Requirement.for_package(
"dnsconfd-dracut",
reason="Necessary for encrypted DNS configuration in initramfs."
))

return requirements

def configure_activation_on_boot_with_task(self, onboot_ifaces):
Expand Down Expand Up @@ -810,3 +821,6 @@ def _is_using_persistent_device_names(self, kernel_args):

def _is_using_biosdevname(self, kernel_args):
return kernel_args.get('biosdevname') == "1"

def _is_using_dnsconfd(self, kernel_args):
return kernel_args.get('rd.net.dns-backend') == "dnsconfd"
Loading