From ef59be657be407d6e668bb89ac70374dfc01d935 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Wed, 25 Oct 2017 00:32:37 -0700 Subject: 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 --- Makefile | 4 ++-- 1 file 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 -- cgit 1.4.1