test: Populate/cleanup /etc "manually" via Makefile/tests

For now, do not mount /etc as tmpfs, but instead create the dir when
building the rootfs via test/test_root/Makefile.

Signed-off-by: Magnus Malm <magnusmalm@gmail.com>
This commit is contained in:
Magnus Malm committed 2021-02-23 11:24:54 +01:00
1 parent b364fd7d6a
commit 6bcb9e9030
2 files changed
+3 -2

No files matched your search

+2 -1
View File
@@ -35,7 +35,8 @@ dirs = ./dev \
./sbin \
./sys \
./test_assets \
./tmp
./tmp \
./etc
_libs_src = $(shell ldd $(FINITBIN) | grep -Eo '/[^ ]+')
libs = $(foreach path,$(_libs_src),.$(path))
+1 -1
View File
@@ -17,7 +17,7 @@ mount -n -t tmpfs none /dev
mount -t proc none /proc
mount -t sysfs none /sys
# mount -t tmpfs none /tmp
mount -t tmpfs none /etc
# mount -t tmpfs none /etc
# mkdir -p /dev/pts
# mount -t devpts none /dev/pts