Skip to content

Commit ef59be6

Browse files
krajJuan RP
authored andcommitted
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>
1 parent a943cc1 commit ef59be6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ install:
3838
install -m644 dracut/*.conf ${DESTDIR}/${PREFIX}/lib/dracut/dracut.conf.d
3939
ln -sf /run/runit/reboot ${DESTDIR}/etc/runit/
4040
ln -sf /run/runit/stopit ${DESTDIR}/etc/runit/
41-
cp -aP runsvdir/* ${DESTDIR}/etc/runit/runsvdir/
42-
cp -aP services/* ${DESTDIR}/etc/sv/
41+
cp -R --no-dereference --preserve=mode,links -v runsvdir/* ${DESTDIR}/etc/runit/runsvdir/
42+
cp -R --no-dereference --preserve=mode,links -v services/* ${DESTDIR}/etc/sv/
4343

4444
clean:
4545
-rm -f halt pause

0 commit comments

Comments
 (0)