diff --git a/src/modules/networkcfg/main.py b/src/modules/networkcfg/main.py index 7059afdec..98bc231c5 100644 --- a/src/modules/networkcfg/main.py +++ b/src/modules/networkcfg/main.py @@ -56,7 +56,7 @@ def run(): # We need to overwrite the default resolv.conf in the chroot. source_resolv = "/etc/resolv.conf" target_resolv = os.path.join(root_mount_point, "etc/resolv.conf") - if os.path.exists(source_resolv): + if source_resolv != target_resolv and os.path.exists(source_resolv): try: shutil.copy(source_resolv, target_resolv) except FileNotFoundError: