From 3f39d107e1be1ad287f5ffff53348ab2b3c5be9b Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Thu, 27 Feb 2025 19:52:27 -0500 Subject: [PATCH] imagectl: Copy symlinks as symlinks for manifests This fixes using `defaults.yaml` as a link, which we don't want to list with the `list` verb. --- bootc-base-imagectl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootc-base-imagectl b/bootc-base-imagectl index 446f169..871d5ea 100755 --- a/bootc-base-imagectl +++ b/bootc-base-imagectl @@ -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}")