mirror of
https://github.com/troglobit/finit.git
synced 2026-11-18 19:30:56 +00: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:
1 parent
b568c18346
commit
6e197f5751
1 file changed
+3
@@ -57,6 +57,8 @@ dirs = $(DEST)/bin \
|
|||||||
$(DEST)/etc \
|
$(DEST)/etc \
|
||||||
$(DEST)/proc \
|
$(DEST)/proc \
|
||||||
$(DEST)/sbin \
|
$(DEST)/sbin \
|
||||||
|
$(DEST)/var \
|
||||||
|
$(DEST)/run \
|
||||||
$(DEST)/sys \
|
$(DEST)/sys \
|
||||||
$(DEST)/test_assets \
|
$(DEST)/test_assets \
|
||||||
$(DEST)/tmp
|
$(DEST)/tmp
|
||||||
@@ -65,6 +67,7 @@ _libs_src = $(shell ldd $(FINITBIN) | grep -Eo '/[^ ]+')
|
|||||||
libs = $(foreach path,$(_libs_src),$(abspath $(DEST))$(path))
|
libs = $(foreach path,$(_libs_src),$(abspath $(DEST))$(path))
|
||||||
|
|
||||||
all: $(dirs) $(binaries) $(libs) $(DEST)/bin/chrootsetup.sh
|
all: $(dirs) $(binaries) $(libs) $(DEST)/bin/chrootsetup.sh
|
||||||
|
touch $(DEST)/etc/fstab
|
||||||
|
|
||||||
$(dirs):
|
$(dirs):
|
||||||
mkdir -p $@
|
mkdir -p $@
|
||||||
|
|||||||
Reference in new issue
Block a user