copy resolvconf as link

This commit is contained in:
Raul Rodrigo Segura 2021-05-12 16:20:13 +02:00
parent 5241e25ae8
commit a888156deb

View File

@ -59,7 +59,7 @@ def run():
continue continue
try: try:
shutil.copy(source_network, target_network) shutil.copy(source_network, target_network, follow_symlinks=False)
except FileNotFoundError: except FileNotFoundError:
libcalamares.utils.debug( libcalamares.utils.debug(
"Can't copy network configuration files in " "Can't copy network configuration files in "
@ -80,7 +80,7 @@ def run():
) )
try: try:
shutil.copy(source_resolv, target_resolv) shutil.copy(source_resolv, target_resolv, follow_symlinks=False)
except Exception as err: except Exception as err:
libcalamares.utils.debug( libcalamares.utils.debug(
"Can't copy resolv.conf from {}: {}".format(source_resolv, err) "Can't copy resolv.conf from {}: {}".format(source_resolv, err)