diff options
| author | Nataliia Solomko <natalirs1985@gmail.com> | 2026-07-03 14:18:32 +0300 |
|---|---|---|
| committer | Nataliia Solomko <natalirs1985@gmail.com> | 2026-07-03 14:18:32 +0300 |
| commit | 2a73f2a1bdd1c1ea6b7fd3d27ba8c2e335fa14bb (patch) | |
| tree | d2df2eede057efed1fc2f2c20c8c0c0d127ce46a /python | |
| parent | 279f785efb15667c266da9ea73d016b5d5f0f403 (diff) | |
| download | vyos-1x-2a73f2a1bdd1c1ea6b7fd3d27ba8c2e335fa14bb.tar.gz vyos-1x-2a73f2a1bdd1c1ea6b7fd3d27ba8c2e335fa14bb.zip | |
T8344: Preserve symlinks when copying config to/from TPM encrypted volume
shutil.copytree() defaults to symlinks=False, so it recurses into
symlinked directories and recreates them as real directories instead
of preserving the symlink.
cloud-init creates /opt/vyatta/etc/config/cloud/instance as a symlink
to instances/i-<id>. Enabling/disabling config encryption copied this
tree with copytree() and silently turned that symlink into a real
directory, causing cloud-init to fail on later runs with:
IsADirectoryError: [Errno 21] Is a directory: '.../cloud/instance'
Pass symlinks=True to preserve symlinks during the copy.
Diffstat (limited to 'python')
0 files changed, 0 insertions, 0 deletions
