mirror of
https://github.com/troglobit/finit.git
synced 2026-10-01 05:22:48 +07:00
test: install busybox symlinks with relative path
Then it works to run the applets from outside the unshare. Useful for testing and test development. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
+8
-1
@@ -40,7 +40,14 @@ libs = $(foreach path,$(_libs_src),$(abspath $(DEST))$(path))
|
||||
all: $(libs) $(DEST)/bin/$(BBBIN)
|
||||
@(cd $(DEST); \
|
||||
for prg in `./bin/$(BBBIN) --list-full`; do \
|
||||
ln -sf /bin/$(BBBIN) $$prg; \
|
||||
case $$prg in \
|
||||
usr/bin/* | usr/sbin/*) \
|
||||
ln -sf ../../bin/$(BBBIN) $$prg;; \
|
||||
bin/* | sbin/*) \
|
||||
ln -sf ../bin/$(BBBIN) $$prg;; \
|
||||
*) \
|
||||
ln -sf bin/$(BBBIN) $$prg;; \
|
||||
esac; \
|
||||
done)
|
||||
|
||||
$(DEST)/bin/$(BBBIN).sha256:
|
||||
|
||||
Reference in New Issue
Block a user