fix(bootstrap): unify resolv.conf to live environment DNS symlink

This commit is contained in:
2026-02-20 20:12:42 +01:00
parent 23a798a63a
commit 42cb5071c2
10 changed files with 7 additions and 75 deletions

View File

@@ -13,18 +13,6 @@
- bootstrap_result.rc != 0
- "'grub2-common' not in (bootstrap_result.stderr | default(''))"
- name: Write resolv.conf into chroot
ansible.builtin.copy:
dest: /mnt/etc/resolv.conf
mode: "0644"
content: |
{% for dns in system_cfg.network.dns.servers %}
nameserver {{ dns }}
{% endfor %}
{% if system_cfg.network.dns.search | default([]) | length > 0 %}
search {{ system_cfg.network.dns.search | join(' ') }}
{% endif %}
- name: Ensure chroot RHEL DVD directory exists
ansible.builtin.file:
path: /mnt/usr/local/install/redhat/dvd