Merge branch 'copytree-symlinks' into 'main'

imagectl: Copy symlinks as symlinks for manifests

See merge request fedora/bootc/base-images!101
This commit is contained in:
Colin Walters (Red Hat) 2025-02-28 15:15:28 +00:00
commit b4469c1f50

View file

@ -48,7 +48,7 @@ def run_build_rootfs(args):
for d in [MANIFESTDIR]:
dst = path.join(target, d)
print(f"Copying /{d} to {dst}")
shutil.copytree('/' + d, dst)
shutil.copytree('/' + d, dst, symlinks=True)
for f in ['usr/libexec/bootc-base-imagectl']:
dst = path.join(target, f)
print(f"Copying /{f} to {dst}")