summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2025-03-29 10:41:57 +0100
committerGitHub <noreply@github.com>2025-03-29 10:41:57 +0100
commitd22dd8325c57ad98544bca2873bce09353591b08 (patch)
treee97a37553602b89a70eee2484f5601937a5cea92 /src
parent53a7d9b6cb2f6641e40ac72dc2d5d51a2684a591 (diff)
parente21b9658f05743c36c664f625feed86ef7f420c6 (diff)
downloadvyos-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-xsrc/op_mode/image_installer.py2
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)