From 6bcb9e9030b7c61f05a9caed28f8b53212d7dc96 Mon Sep 17 00:00:00 2001 From: Magnus Malm Date: Tue, 23 Feb 2021 11:20:38 +0100 Subject: [PATCH] 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 --- test/test_root/Makefile | 3 ++- test/test_root/bin/chrootsetup.sh | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/test/test_root/Makefile b/test/test_root/Makefile index 29dd7d68..0fa7304c 100644 --- a/test/test_root/Makefile +++ b/test/test_root/Makefile @@ -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)) diff --git a/test/test_root/bin/chrootsetup.sh b/test/test_root/bin/chrootsetup.sh index fe4e0e4c..5f22b209 100755 --- a/test/test_root/bin/chrootsetup.sh +++ b/test/test_root/bin/chrootsetup.sh @@ -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