Skip to content
Browse files

[packaging] Replace incompatible find command. Contributes to JB#36243

Busybox find doesn't support -lname or -execdir. This replicates -lname
functionality with some shell scripting and skips -execdir as

Signed-off-by: Tomi Leppänen <>
  • Loading branch information...
Tomin1 committed Jan 28, 2019
1 parent 07f8d22 commit 9398a1c91330aab86d2b66cbc165f621fdf0ab1a
Showing with 6 additions and 1 deletion.
  1. +6 −1
@@ -595,7 +595,12 @@ rm -rf $RPM_BUILD_ROOT/{charger,res,data}
mkdir -p $RPM_BUILD_ROOT/sbin
mv $RPM_BUILD_ROOT/init $RPM_BUILD_ROOT/sbin/droid-hal-init
# Rename any symlinks to droid's /init
find $RPM_BUILD_ROOT/sbin/ -lname ../init -execdir rm {} \; -execdir ln -s ./droid-hal-init {} \;
for link in $(find $RPM_BUILD_ROOT/sbin/ -type l); do
if [ "$(readlink $link)" == "../init" ]; then
rm "$link"
ln -s ./droid-hal-init "$link"
#mv $RPM_BUILD_ROOT/charger $RPM_BUILD_ROOT/sbin/droid-hal-charger
# for use in the -devel package

0 comments on commit 9398a1c

Please sign in to comment.
You can’t perform that action at this time.