diff options
author | Christian Breunig <christian@breunig.cc> | 2025-03-29 10:41:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-29 10:41:57 +0100 |
commit | d22dd8325c57ad98544bca2873bce09353591b08 (patch) | |
tree | e97a37553602b89a70eee2484f5601937a5cea92 /src | |
parent | 53a7d9b6cb2f6641e40ac72dc2d5d51a2684a591 (diff) | |
parent | e21b9658f05743c36c664f625feed86ef7f420c6 (diff) | |
download | vyos-1x-d22dd8325c57ad98544bca2873bce09353591b08.tar.gz vyos-1x-d22dd8325c57ad98544bca2873bce09353591b08.zip |
Merge pull request #4423 from jestabro/preserve-symlinks
T7294: preserve /config symlinks on image upgrade
Diffstat (limited to 'src')
-rwxr-xr-x | src/op_mode/image_installer.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/op_mode/image_installer.py b/src/op_mode/image_installer.py index 82756daec..3fe9737da 100755 --- a/src/op_mode/image_installer.py +++ b/src/op_mode/image_installer.py @@ -1007,7 +1007,7 @@ def add_image(image_path: str, vrf: str = None, username: str = '', Path(target_config_dir).mkdir(parents=True) chown(target_config_dir, group='vyattacfg') chmod_2775(target_config_dir) - copytree('/opt/vyatta/etc/config/', target_config_dir, + copytree('/opt/vyatta/etc/config/', target_config_dir, symlinks=True, copy_function=copy_preserve_owner, dirs_exist_ok=True) else: Path(target_config_dir).mkdir(parents=True) |