From 8208bce0273481d84dd287b2c05d4d8cc16257bc Mon Sep 17 00:00:00 2001 From: Stepan Blyschak Date: Wed, 26 Sep 2018 16:26:04 +0300 Subject: [PATCH] [sonic-device-data] Fix config symlinks dereference ('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 911c8641a682..b258db960727 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