From e717ad656f5c2deefd883f3c37ae432c4ad0c6ef Mon Sep 17 00:00:00 2001 From: Stefan Kalkowski Date: Fri, 12 Jul 2013 12:50:45 +0200 Subject: [PATCH] base-hw: preserve symbolic link bin/core In this case "mv A B" works slightly different than "cp A B; rm A" as symbolic links come into play. The statements should copy the contents of A into the symboliv link at B (preserving it as is) and remove A. The mv would replace the link B by the binary A. Fixes #805. --- base-hw/run/env | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/base-hw/run/env b/base-hw/run/env index fbccb6a3b8..cd9d3b942a 100644 --- a/base-hw/run/env +++ b/base-hw/run/env @@ -207,7 +207,8 @@ proc build_boot_image {binaries} { } # retrieve stand-alone core - exec mv core/core.standalone bin/core + exec cp core/core.standalone bin/core + exec rm core/core.standalone }