Merge pull request #1692 from edupals/copy_link_resolvconf

[networkcfg] copy resolvconf as link
This commit is contained in:
Adriaan de Groot 2021-05-17 12:14:24 +02:00 committed by GitHub
commit ce5b5c6734
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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