about summary refs log tree commit diff
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2017-10-25 00:32:37 -0700
committerJuan RP <xtraeme@gmail.com>2017-10-25 09:32:37 +0200
commitef59be657be407d6e668bb89ac70374dfc01d935 (patch)
treebc4e7da32bfe7ff30b3d8e5fe0b63d2db2178662
parenta943cc1971f855e5ceac49edb9428fbf3d255360 (diff)
downloadrunit-void-ef59be657be407d6e668bb89ac70374dfc01d935.tar.gz
runit-void-ef59be657be407d6e668bb89ac70374dfc01d935.tar.xz
runit-void-ef59be657be407d6e668bb89ac70374dfc01d935.zip
Adjust options for cp command during install (#71)
cp -a copies the attributes of build user
which may be different from the user on target
in cross compile environment

Fixes errors like

/runit-services/etc/sv/sulogin/run is owned by uid 1000, which is the same as the user running bitbake

Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 777326c..a21e5c9 100644
--- a/Makefile
+++ b/Makefile
@@ -38,8 +38,8 @@ install:
 	install -m644 dracut/*.conf ${DESTDIR}/${PREFIX}/lib/dracut/dracut.conf.d
 	ln -sf /run/runit/reboot ${DESTDIR}/etc/runit/
 	ln -sf /run/runit/stopit ${DESTDIR}/etc/runit/
-	cp -aP runsvdir/* ${DESTDIR}/etc/runit/runsvdir/
-	cp -aP services/* ${DESTDIR}/etc/sv/
+	cp -R --no-dereference --preserve=mode,links -v runsvdir/* ${DESTDIR}/etc/runit/runsvdir/
+	cp -R --no-dereference --preserve=mode,links -v services/* ${DESTDIR}/etc/sv/
 
 clean:
 	-rm -f halt pause