From 66e0d6bcc07e1688e1b32a38d4a2d276c7777553 Mon Sep 17 00:00:00 2001 From: stepanblyschak <38952541+stepanblyschak@users.noreply.github.com> Date: Thu, 27 Sep 2018 09:27:52 +0300 Subject: [PATCH] [sonic-device-data] Fix config symlinks dereference (#2085) ('cp -H' -> 'cp -L') '-L' does what we need in this case From man cp ... -H follow command-line symbolic links in SOURCE ... -L, --dereference always follow symbolic links in SOURCE Signed-off-by: Stepan Blyschak --- src/sonic-device-data/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sonic-device-data/Makefile b/src/sonic-device-data/Makefile index 911c8641a6..b258db9607 100644 --- a/src/sonic-device-data/Makefile +++ b/src/sonic-device-data/Makefile @@ -12,7 +12,7 @@ $(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% : # Create a new dir and copy all ONIE-platform-string-named dirs into it mkdir ./device - cp -r -H ../../../device/*/* ./device/ + cp -r -L ../../../device/*/* ./device/ # Build the package dpkg-buildpackage -rfakeroot -b -us -uc