mirror of
https://github.com/troglobit/finit.git
synced 2026-10-01 05:22:48 +07:00
test: add /var and /run to rootfs, add empty fstab
- We need a working /var and /run for some features, e.g. PID monitoring and status files for urandom.so - Add empty fstab to silence mount errors from finit Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
@@ -57,6 +57,8 @@ dirs = $(DEST)/bin \
|
||||
$(DEST)/etc \
|
||||
$(DEST)/proc \
|
||||
$(DEST)/sbin \
|
||||
$(DEST)/var \
|
||||
$(DEST)/run \
|
||||
$(DEST)/sys \
|
||||
$(DEST)/test_assets \
|
||||
$(DEST)/tmp
|
||||
@@ -65,6 +67,7 @@ _libs_src = $(shell ldd $(FINITBIN) | grep -Eo '/[^ ]+')
|
||||
libs = $(foreach path,$(_libs_src),$(abspath $(DEST))$(path))
|
||||
|
||||
all: $(dirs) $(binaries) $(libs) $(DEST)/bin/chrootsetup.sh
|
||||
touch $(DEST)/etc/fstab
|
||||
|
||||
$(dirs):
|
||||
mkdir -p $@
|
||||
|
||||
Reference in New Issue
Block a user