diff options
author | Khem Raj <raj.khem@gmail.com> | 2017-10-25 00:32:37 -0700 |
---|---|---|
committer | Juan RP <xtraeme@gmail.com> | 2017-10-25 09:32:37 +0200 |
commit | ef59be657be407d6e668bb89ac70374dfc01d935 (patch) | |
tree | bc4e7da32bfe7ff30b3d8e5fe0b63d2db2178662 | |
parent | a943cc1971f855e5ceac49edb9428fbf3d255360 (diff) | |
download | runit-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-- | Makefile | 4 |
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 |